minecraft - Preventing a player from tossing out an item - Arqade [PDF]

5 hours ago - How do you prevent a player from throwing out an item, I tried curse of binding but all that does is preve

7 downloads 10 Views 54KB Size

Recommend Stories


PdF Minecraft
Never wish them pain. That's not who you are. If they caused you pain, they must have pain inside. Wish

Read PDF The Ultimate Player s Guide to Minecraft
Don't ruin a good today by thinking about a bad yesterday. Let it go. Anonymous

achievement tests from an item perspective
Learning never exhausts the mind. Leonardo da Vinci

Minecraft
Just as there is no loss of basic energy in the universe, so no thought or action is without its effects,

in a Minecraft world?
You have survived, EVERY SINGLE bad day so far. Anonymous

PDF Read The Ultimate Minecraft Survival Guide: An Unofficial Guide to Minecraft Tips and Tricks
Ask yourself: Am I achieving the goals that I’ve set for myself? Next

Player ## Player
Happiness doesn't result from what we get, but from what we give. Ben Carson

MINECRAFT Mania!
You often feel tired, not because you've done too much, but because you've done too little of what sparks

Preventing Pollution from your Home
The greatest of richness is the richness of the soul. Prophet Muhammad (Peace be upon him)

Ultimate Minecraft Guide
Nothing in nature is unbeautiful. Alfred, Lord Tennyson

Idea Transcript


Sign up

Anybody can ask a question

I tried the curse of binding, but that only prevented armor from being taken off once put on. I need this because I have a class system on my server and I don't want players giving each other items. minecraft

edited Dec 5 at 16:53

asked Dec 5 at 16:40

Assafi Cohen-Arazi

TheDerpyRedstone

720

6

1

18

3

Is there a chance of other items being on the ground? – Fabian Dec 5 at 17:34 Have you made any attempt to solve this yourself? Arqade works better when askers show effort to solve their own problems; we see that you have a problem you've worked on, and answerers respond to that. You also get a more specific answer that's tailored exactly to the part you're stuck, and Arqade gets a very specific question. Everybody wins! – Frank Dec 5 at 19:27

1 Answer

You can remove an item on the ground like this: /kill @e[type=item]

Careful! This destroys all items on the ground! You have to specify properties of the item, for example you can assign a scoreboard based on the type or you can limit it to a radius around players. What exactly you need depends on your setup. Then you can place it back into the inventory: /replaceitem entity @p slot.hotbar.0 stone 0 1

Put both into a clock and you have prevented throwing out items. But it can still be copied over to other slots, so you can either replace all other slots with air or repeatedly take away and give the item from/to the player, whatever fits your needs. answered Dec 5 at 17:44

Fabian 2,467

1

4

23

_

Here's how it works:

Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Anybody can answer



The best answers are voted up and rise to the top

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.