• 0

    posted a message on [1.14] Apply a command to an item to teleport me home?

    Maybe execute if @e[type=player,nbt={ *potion effect here* }] run

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] Apply a command to an item to teleport me home?

    1 problem i have is that i have to drop an item rather than using it and it also triggers even if i'm just moving the item from 1 slot to another. Maybe I could have a custom potion like Potion of Awakening and when you drink it, a command block detects your effect and teleports you to your bed as if you just woke up

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] Apply a command to an item to teleport me home?

    Hi I have a realm and I want everyone to have an item that can teleport them home. I was thinking something like a feather that you hold for 3 seconds or maybe something that can activate instantly upon right-click? If you can help me please let me know how to do it or if it is even possible. Thanks :)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Auto-Chopping Trees

    Are you able to use a fill command to replace the logs and leaves with air and set it to destroy so the items fall down? Also that stuff sounds complicated but cool, so congratulations

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I display score on a sign

    To keep it simple, I want to have a sign with a number on it and I want the number to go up by 1 every time I press a button.

    I have an armor stand called Adam that I can use to keep the score on if necessary.

    Currently when I press a button it adds 1 score to adam but I want a sign to be able to change to that number

    This is the command I have to change the text on the sign but idk if this is how i use it with score. Can anyone help?


    /data merge block 735 61 148 {Text3:"{\"text\":\"Score\"}"}

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Can a block keep its name and lore after placing it and picking up?

    It works! Thank you so much!

    It never ever crosses my mind to execute as a different entity :o

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Can a block keep its name and lore after placing it and picking up?

    I'm working on a small adventure mode dungeon and I have this command which sets a chests contents to be 7 blocks of white concrete (for a puzzle room) and a pickaxe that can only break white concrete.


    /data merge block 692 56 161 {Items:[{Slot:12b,id:"minecraft:white_concrete",Count:7b,tag:{CanPlaceOn:["minecraft:sea_lantern"],display:{Name:"{\"text\":\"White block\",\"color\":\"white\",\"italic\":false}",Lore:["{\"text\":\"I think it's for a puzzle...\",\"color\":\"gray\",\"italic\":true}"]},HideFlags:18}},{Slot:14b,id:"minecraft:iron_pickaxe",Count:1b,tag:{CanDestroy:["minecraft:white_concrete"],display:{Name:"{\"text\":\"Questionable pickaxe\",\"color\":\"light_purple\"}",Lore:["{\"text\":\"Looks like it can only \",\"color\":\"gray\",\"italic\":false}","[{\"text\":\"break \",\"color\":\"gray\",\"italic\":false},{\"text\":\"certain blocks\",\"color\":\"white\",\"italic\":true},{\"text\":\"?\",\"color\":\"gray\",\"italic\":false}]"]},HideFlags:14,Unbreakable:1b,AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-1,Operation:0,UUIDLeast:229753,UUIDMost:970474}]}}]}


    However, the white concrete can only be placed on sea lanterns. When testing, I noticed that if the player puts the block in the wrong place and mines it, when they pick it up it loses its name and lore and CanPlaceOn properties. How can I make it so someone in adventure mode can place white concrete on sea lanterns after it has been mined? (I'd also like the concrete to keep the name and lore if possible) thanks :)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is it possible to empty inventory into chest?

    I thought of that but the only problem is that it affects the whole world so there will be others who are affected and I only want it to be within the dungeon

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is it possible to empty inventory into chest?

    I have a realm with my friends and they play in survival mode but I've made an adventure dungeon and I don't want them to be able to take anything in. Is it possible to use commands blocks to transfer their items from their inventory (and hotbar and armour) into a double chest so they don't lose their items?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Summon horizontal mob?

    I want to lay down a skeleton as if it's in bed but I want it to be lying down on 2 blocks of hay. Is this possible with a command?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I set limit on mob spawning

    Here is a video showing what I'm talking about:


    Also I can't figure out a way so that when Frostbite dies it summons a different version of it in the same location that it died.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I set limit on mob spawning

    Hello. I have a custom Stray called Frostbite and every 5 seconds I want him to spawn 4 weak skeletons around him. So I have 4 of these running on a 100 tick timer (the co-ordinates are different on each):


    execute at @e[tag=Frostbite] if block ~ ~1 ~1 air run summon minecraft:skeleton ~ ~ ~1 {CanPickUpLoot:0b,Health:1,Attributes:[{Name:"generic.maxHealth",Base:1},{Name:"generic.movementSpeed",Base:0.2f}],HandItems:[{id:"minecraft:stick",Count:1},{}],Tags:["SnowSkeleton"],Team:Monsters}

    It summons a skeleton with 1 health holding a stick next to Frostbite but I want the command to limit the number of existing SnowSkeletons to 12 so the room doesn't fill up with dozens of SnowSkeletons. Can someone please tell me how to do this?


    On an unrelated note: When I bump into mobs in creative mode it bounces me away quite a lot and I wanna know why and how to stop it from happening. I hope someone can help.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I check for mobs within an area?

    Hey guys, here's the situation:

    I'm trying to make an arena of sorts. It's a big room with a trapped chest in the middle. When you open the chest, it triggers a fake explosion using command blocks and the room fills with particles and snow. After that, 4 skeletons spawn.


    What I want to know is: How do I use a command block to check that all 4 skeletons have died before spawning 4 different mobs?


    Currently, when the first 4 skeletons spawn, a timer waits 20 ticks and powers a 'Needs Redstone' repeating command block which has

    execute unless entity @e[type=minecraft:skeleton,x=-29,z=52,dx=20,dz=20] run setblock -18 52 73 minecraft:redstone_block

    I assume this checks the area for skeletons and powers the next set of command blocks, but my problem is that as soon as it becomes powered it spawns the skeletons immediately rather than checking to see if they're dead. Is anyone able to solve this?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I kill my armor stand from afar?

    What do I enter into a command block that will destroy my armor stand which is equipped with skull, gold chestplate, gold leggings, gold boots? Its base is at location x y z "3 59 89"? I also do not want to kill 2 armor stands wearing gold that I have equipped further away so killing ALL armor stands is not favorable.


    I've tried /kill @e[type=minecraft:armor_stand,distance=20]

    But I just don't understand some of these variables. Please help.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Where can I find tutorials on every command for 1.14.1?

    I'm trying to set up a command block so when you press a button it summons a skeleton with a bow, wearing a red leather tunic, with fire resistance, named Rattle, and I want it to have 40 health rather than 20.


    With the command following command everything works but it adds no health:

     /summon skeleton ~ ~1 ~ {PersistenceRequired:1,HandItems:[{Count:1,id:bow},{}],ArmorItems:[{},{},{Count:1,id:leather_chestplate,tag:{display:{color:11546150}}},{}],CustomName:"\"Rattle\"",ActiveEffects:[{Id:12,Amplifier:0,Duration:999999}]}

    I've tried to add "Health:40.0f" between "{" and "Persistence" but it doesn't do anything. Please help.

    Also, how do I make it so that mobs don't retaliate when shot by a skeleton? I'm trying to make a gauntlet-type challenge but the mobs keep attacking eachother.

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please or register a new account.