382
Minecraft Command Blogs
By Pepijn96
/trigger, PickupDelay, Age, CanPlaceOn, HideFlags and a lot more!
A new Snapshot has been released and as always, Mojang has added some stuff for us to explore on our own. If you however don't feel like discovering what you have to do... well, then you are at the right place!
/trigger
If we want to work with /trigger we first need to take a look at the /scoreboard command, because what trigger does is that it allows non OP players to activate Commands! first you will need to make a scoreboard objective with the type trigger:
/scoreboard objective add [Name] trigger [Display Name]
After this the Player can use the /trigger command to add or set scores to that specific objective, but only when you have done /scoreboard players enable [@p/@a/@r/IGN] [Name of objective]!
After the player is allowed to change it he/she can do this by using the /trigger command:
/trigger [Name of objective] {set;add} [Value]
This command can be used by everyone, so you don't have to be OP. You can even smoothen this a little bit by using /tellraw and clickEvent:
/tellraw [@p;@a;@r] {text:"Click ",extra:[{text:"Here!",bold:true,clickEvent:{action:run_command,value:/"trigger Name of objective] {set;add} [Value]"}}]}
PickupDelay and Age
These tags aren't new but when you set PickupDelay to 32767 the Item can never be picked up and when you set Age to -32768, the Item will never despawn.
CanPlaceOn
This tags goes hand in hand with the new Adventure Mode, where in you can't place blocks on the ground by default. But when you use the CanPlaceOn tag when giving yourself or the player an item, it can be placed on the blocks you specify. It looks like this:
/give [@a/@p/@r/IGN] [minecraft:] [amount] [damage] {CanPlaceOn:["minecraft:"]
Together with CanDestroy, this tag gives way more control over Adventure Maps and makes cheating harder to do.
HideFlags
This tag allows you to hide the Information given when hovering over an item in your inventory.
/give [@a/@p/@r/IGN] [minecraft:] [amount] [damage] {HideFlags:}
Others
With /scoreboard players reset you can now specify what objective to reset:
/scoreboard players reset [@p/@a/@r/IGN] [Objective]
With a "*" you can now set,add,remove,reset scores of every player that is on the scoreboard, even when that player is not online or when the player doesn't even exist
By adding true or false behing your usual /effect command you can determine if the particles show up or not (true for no particles)
Want more?
Be sure to diamond if this helped you and if you want more of these, just let me know!
Pepijn96
By Pepijn96
/trigger, PickupDelay, Age, CanPlaceOn, HideFlags and a lot more!
A new Snapshot has been released and as always, Mojang has added some stuff for us to explore on our own. If you however don't feel like discovering what you have to do... well, then you are at the right place!
/trigger
If we want to work with /trigger we first need to take a look at the /scoreboard command, because what trigger does is that it allows non OP players to activate Commands! first you will need to make a scoreboard objective with the type trigger:
/scoreboard objective add [Name] trigger [Display Name]
After this the Player can use the /trigger command to add or set scores to that specific objective, but only when you have done /scoreboard players enable [@p/@a/@r/IGN] [Name of objective]!
After the player is allowed to change it he/she can do this by using the /trigger command:
/trigger [Name of objective] {set;add} [Value]
This command can be used by everyone, so you don't have to be OP. You can even smoothen this a little bit by using /tellraw and clickEvent:
/tellraw [@p;@a;@r] {text:"Click ",extra:[{text:"Here!",bold:true,clickEvent:{action:run_command,value:/"trigger Name of objective] {set;add} [Value]"}}]}
PickupDelay and Age
These tags aren't new but when you set PickupDelay to 32767 the Item can never be picked up and when you set Age to -32768, the Item will never despawn.
CanPlaceOn
This tags goes hand in hand with the new Adventure Mode, where in you can't place blocks on the ground by default. But when you use the CanPlaceOn tag when giving yourself or the player an item, it can be placed on the blocks you specify. It looks like this:
/give [@a/@p/@r/IGN] [minecraft:] [amount] [damage] {CanPlaceOn:["minecraft:"]
Together with CanDestroy, this tag gives way more control over Adventure Maps and makes cheating harder to do.
HideFlags
This tag allows you to hide the Information given when hovering over an item in your inventory.
/give [@a/@p/@r/IGN] [minecraft:] [amount] [damage] {HideFlags:}
Others
With /scoreboard players reset you can now specify what objective to reset:
/scoreboard players reset [@p/@a/@r/IGN] [Objective]
With a "*" you can now set,add,remove,reset scores of every player that is on the scoreboard, even when that player is not online or when the player doesn't even exist
By adding true or false behing your usual /effect command you can determine if the particles show up or not (true for no particles)
Want more?
Be sure to diamond if this helped you and if you want more of these, just let me know!
Pepijn96
Tags |
tools/tracking
2736989
6
minecraft-command-blogs-trigger-pickupdelay-age-canplaceon-hideflags-and-a-lot-more
Create an account or sign in to comment.
Me: Wait, what did that say?
Pepijin: This tags goes hand in hand with the new Adventure Mode
Me: Wait..
Pepijin: new Adventure Mode
Pepijin: new Adventure Mode
Pepijin: neeeeeeeeeeeew Adventure Mode
Me: Oh, so apperently this 2012... MIND BLOWN!
To be clear. If I click the text, my score will be changed. If my friend clicks the text (could be the very same text I clicked on) his score will be changed.
If you wish to set the score of person 2 when person 1 clicks the text, you will have to do a work-around and test for a scorechange of person 1 what will activate a commandblock that changes the score for person 2.