Answer by Skylinerw for Minecraft: using entitydata, putting items in a...
Key names and values must be separated with a colon; your id tags are missing that colon.You are also using an invalid quotation symbol ”, when it needs to be " instead.Fixed command, removing excess...
View ArticleAnswer by Skylinerw for testfor a cocoa bean in a player inventory
When testing for pre-existing data, you must specify that data as it's saved. The Damage tag is saved as a short, so you append the numerical value with an "s":/testfor awesomeianman...
View ArticleAnswer by Skylinerw for why isn't this working? (spawning a chest with...
The BlockEntityTag compound is for items, holding data to apply to the tile entity corresponding to the item.Simply remove that tag:/setblock ~1 ~ ~ chest 1 0 {LootTable:"mctools:chests/loot_table"}
View ArticleAnswer by Skylinerw for execute /list command
When something runs a command, a "command sender" object is created that has some standard functions dealing with the command sender, such as obtaining position and sending a message to the chat.The...
View ArticleAnswer by Skylinerw for Run commands as a dead player
@e cannot target dead players. Only the @a selector can (as well as the upcoming @s selector, though is irrelevant when you'd need to use @a first for @s to be functional), and only if the r/dx/dy/dz...
View ArticleAnswer by Skylinerw for Problem with scoreboard finding named and enchanted item
The error message might not be too useful since, when receiving it via a command block, it only concerns the last iteration of the command. In this case, the last item entity that had its NBT data...
View ArticleAnswer by Skylinerw for How can I /execute a command on all Endermen on the...
When you use a selector that includes dimension-binding parameters (x/y/z/dx/dy/dz/distance), the dimension of execution will be restricted to the command sender's dimension. The gameLoopFunction...
View ArticleAnswer by Skylinerw for Testing for specific player a with command block
There is no n parameter. The correct parameter you're looking for is name. The wiki has a list of all valid parameters here.testfor @p[1303,56,518,2,name=JAMES_the_camel]For 1.11-1.12, which removes...
View ArticleAnswer by Skylinerw for Minecraft command syntax not working
You are missing the coordinates for /summon:/execute @e[type=player,name=nimbusirrus] ~1 ~ ~ summon minecraft:husk ~ ~ ~...
View ArticleAnswer by Skylinerw for How to detect when a button is pressed 3 times using...
score_<objective>=# is checking for a maximum score, which means score_Tank=4 is looking for a score of 4 or lower. You'll want to use score_<objective>_min=# to check for a minimum score,...
View ArticleAnswer by Skylinerw for Unrideable boats
You can insert two entities into the boat's Passengers list at the same depth to remove the ability for the player to enter it./summon Boat ~ ~1 ~...
View ArticleAnswer by Skylinerw for How do I kill mobs using /kill without them dropping...
The DeathLootTable string tag can modify which loot table the mob will use when killed. The "empty" loot table will cause it to drop nothing:1.12 and lower:/entitydata @e[type=Zombie,r=40]...
View ArticleAnswer by Skylinerw for Testfor specific held item with a certain name and lore?
You are missing a closing curly bracket for the item data:/testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Ticket",Lore:["This is a punched ticket."]}}}]}However, I...
View ArticleAnswer by Skylinerw for Is there a command to spawn a baby zombie?
The IsBaby tag will state whether or not the zombie is a baby. Making it 1 will enable the zombie to be a baby./summon Zombie ~ ~1 ~ {IsBaby:1b}
View ArticleAnswer by Skylinerw for Was the { Levels:n } beacon tag removed/altered in...
The tag was indeed missing and a bug report can be found here. This bug was fixed in 1.14.1-pre1.
View ArticleAnswer by Skylinerw for Unable to exclude two of the same type in a selector
Update for 1.13+: This now just works. type=!player,type=!villager works exactly as expected.Old answer for 1.12: You cannot have more than one parameter with the same key name. The last one defined...
View ArticleAnswer by Skylinerw for How to detect if a player has killed a mob? Minecraft...
You can create an objective with the minecraft.killed:minecraft.bat which will automatically increment each time you kill a bat./scoreboard objectives add batKills minecraft.killed:minecraft.bat
View ArticleAnswer by Skylinerw for How to let player breathe underwater
The Water Breathing effect will prevent players from losing oxygen underwater:/effect USERNAME minecraft:water_breathing 1000000 0 true
View ArticleHow can I target a random entity of any type using @r?
While @r alone can only target player entities, adding the type parameter allows it to target other entity types:/say @r[type=ArmorStand]But because of this requirement, you'd only be able to target...
View ArticleAnswer by Skylinerw for How to use an execute command to test for an item/s...
In order to target that player afterwards, you must use CommandStats to track the success of a command.Prerequisites:Objective to hold the return value./scoreboard objectives add AboveChest...
View Article