Started by
ProStoNik
on
Topic category: Help with Minecraft modding (Java Edition)
Hello. I want to make it so that the player cannot pick up items on the ground. Is it possible? Version 2020.5.
Topic category: Help with Minecraft modding (Java Edition)
Hello. I want to make it so that the player cannot pick up items on the ground. Is it possible? Version 2020.5.
Simple: https://ibb.co/86yzLsL
Sorry, I didn't say it right. I wanted, for example, a player whose tag = true, he cannot pick up, or a scoreboard, for example, player = 1. Others can pick up items. And so thanks for the useful feature.
Ok, try and bind the pickup delay to a nbt variable.
---------------------------------------------------------
If the player has tag = true, set the pick up delay to 10 ticks.
---------------------------------------------------------
If the player has tag = false, set the pick up delay to 1e+31 ticks.
---------------------------------------------------------
Still simple. If you have questions, please ask.
I understand that this is for things that are spawned using a procedure? And what can you do if a player throws an item or dies and an item drops out of it to make it so that this player could not pick them up? and so in general, thanks for the help
---------------------------------------------------------
Do "On player tick update" If the player has tag=true, do nothing. But if tag=false, when the player picks up youre custom item, execute this command in the name of the entity: /clear @s YOURE_MOD_ID:NAME_OF_THE_ITEM 1, then spawn a new item(Gem) next to him.
---------------------------------------------------------
Of corse, this can be picked up with hoppers... But make the item work only when it in you're inventory, so that it would be useless in the hopper or a chest.
---------------------------------------------------------
I hope you won't have questions...
But if you do, ask.
---------------------------------------------------------
Did it work?
I was not joining MCreator when I was adding something customly modeled: Watch Item Storage or something.
Due to missing dependencies I can't code properly about the procedure when it's right clicked, later you may see the item you was holding appeared upside this. It made a mistake.
So, what are you saying is that my idea doesn't work?
If you want I can give you some visual examples (with images)