3

PickupDelay doesn't workhelp

3 emeralds7 replies63 views
MGSuco started 02/17/2021 7:41 am
and replied 02/18/2021 9:43 am
I'm trying to make an unpickable item but when I summon it I instantly pick it up like when you use /give, I've never used a command like this before so I dont know why it's not working, anyone knows what I'm doing wrong?

The command I'm using is:
/summon minecraft:item ~ ~ ~ {Item:{id:"torch",Count:1b,tag:{Age:-32768,PickupDelay:32767}}}
idk if Age works because I keep picking the item up btw
I'm playing vanilla Minecraft on version 1.16.5 in a singleplayer world

And second question: what does "1b" mean in the command above? "1" also works the same way but in the wiki they put "1b" instead so I changed it but I dont know what that b means
Posted by avatar
MGSuco
Level 32 : Artisan Lemon
53

7 replies

2
02/17/2021 6:21 pm
Level 15 : Journeyman Artist
3XX3
3XX3 avatar
summon item ~ ~ ~ {Age:-32768,PickupDelay:32767,Item:{id:"minecraft:torch",Count:1b}}

The little letter after a data tag value has to do with what kind it is, for instance, b stands for "byte", where f is for "float". Sometimes the commands need them in order to work..
1
02/17/2021 6:53 pm
Level 32 : Artisan Lemon
MGSuco
MGSuco avatar
Thank you! it works fine now!
but I still don't get the difference between "1", "1b" and "1f", what makes "byte" different from "float" and why does this command still work without the letter? I actually don't need to know this but I'm curious

btw I have a different question and was gonna make a new forum post about it but I guess I can ask you first and if you know how to help me with this too I won't need to make another forum, is there any way to rotate a falling block like normal stairs? The only answer I found for this was posted 5 years ago and apparently no longer works
2
02/17/2021 7:57 pm
Level 15 : Journeyman Artist
3XX3
3XX3 avatar
I too am confused over the TAG definitions. You can read more about them at minecraft.gamepedia.com/NBT_format

Answering you're other question.
Depends on the block. Blocks that have "facing" property can be changed.

Stairs facing north: summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:acacia_stairs",Properties:{facing:"north"}},Time:1}

Dispenser facing up: summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:dispenser",Properties:{facing:"up"}},Time:1}

Blocks like dirt don't have this facing property.
1
02/17/2021 9:00 pm
Level 32 : Artisan Lemon
MGSuco
MGSuco avatar
ok, thanks a lot!
btw last question lol, if the block Im using is a trapdoor is there any way to make it look like it's open or closed?
2
02/18/2021 2:03 am
Level 15 : Journeyman Artist
3XX3
3XX3 avatar
/summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:oak_trapdoor",Properties:{open:"true"}},Time:1}
1
02/18/2021 9:43 am
Level 32 : Artisan Lemon
MGSuco
MGSuco avatar
ok, thank you!
1
02/17/2021 5:51 pm
Level 32 : Artisan Lemon
MGSuco
MGSuco avatar
no one?
Planet Minecraft Logo

Website

© 2010 - 2021
www.planetminecraft.com

Welcome