All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 1

    posted a message on CAn anyone help me find how to create an item tnt proof
    /summon minecraft:item ~ ~-2 ~ {Item:{id:"minecraft:redstone",Count:1b},Invulnerable:1b}

    Seems to work

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Select item entities that are in a stack?
    /testfor @e[type=Item] {Item:{Count:5b}}

    Keep in mind that they have to be grouped up for that, not just lying next to each other.

    Also, you could use the command

    /entitydata @e[c=2] {}

    to get the data tag of the nearest entity, that is the way I use to figure out how the tags exactly are. Might also help you.


    Hope this helps

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Sign with integrated web link

    Hi,

    the problem with your sign is that your json is invalid. It looks like you just inserted the tellraw command into the value's double quotes, this caused an error because the system thinks you want to exit the (currently opened) double quotes which are Text4:" <--- Those when you use them in the tellraw command tellraw @a {" <--- There and hence it runs into an error where it gets the string text at some inappropriate point in the json. To prevent this, you normally insert a backwards slash (\) before the quote as a so-called escape character. Since you are already in an escaped sequence value:\" <--- Starting here, you have to "escape again" by adding another slash, but since \\ is defined as escape sequence for a simple backwards slash (\), you will need to add another one (\\ \" will turn into \ ").

    So the correct command would be:


    /blockdata ~ ~1 ~ {
    	Text1: "
    		{
    			\"text\":\"Wir haben einen\",
    			\"color\":\"black\"
    		}
    	",
    	Text2: "
    		{
    			\"text\":\"DiscordServer\",
    			\"color\":\"dark_purple\",
    			\"bold\":true
    		}
    	",
    	Text3: "
    		{
    			\"text\":\"Rechtsklicke\",
    			\"color\":\"black\"
    		}
    	",
    	Text4: "
    		{
    			\"text\":\"das Schild\",
    			\"color\":\"black\",
    			\"clickEvent\":{
    				\"action\":\"run_command\",
    				\"value\":\"
    					tellraw @a {
    						\\\"text\\\":\\\"Drücke T und doppelklicke diesen Text\\\",
    						\\\"clickEvent\\\":{
    							\\\"action\\\":\\\"open_url\\\",
    							\\\"value\\\":\\\"https://discord.gg/0sI8FT5HvlR9ZkGP\\\"
    						}
    					}
    				\"
    			}
    		}
    	"
    }


    Viel Spaß!

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Spawning Villagers with Custom Trades Help!

    The enchantment-id of sharpness is 16, not 15.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Spawning Villagers with Custom Trades Help!

    First, as far as I know, the tag must not contain spaces (but a comma instead). Second, you missed the "tag" tag. Third, the enchantment tag is for some reason called "ench". So your item would be {id:iron_sword,Count:1b,tag:{ench:[{id:15,lvl:1}]}}.

    As a whole you want:

    /summon villager 286 67 356 {Invulnerable:1,PersistenceRequired:1,Silent:1,Offers:{Recipes:[{buy:{id:iron_sword,Count:1b,tag:{ench:[{id:15,lvl:1}]}},sell:{id:map,Count:1},maxUses:1}]},Profession:1,Career:2,CareerLevel:3}

    You might also want to consider using MCStacker where you can simply put in the information you want and it give back a command ready to be used.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on I need help with my command contraption

    Your problem is the difference of what you expect the game to do and what you tell it to do. As far as I understood you want to summon (execute) a fireball by everyone who just jumped. What you tell the game to do is to have it summon a fireball by everyone that is currently in the air (most likely throwing that player up into the air or at least destroying the blocks below his feet. This obviously results in him still flying and sending off another explosive load.

    I would instead just use the stat.jump scoreboard type to detect whether a player just jumped. Like this:

    /scoreboard objectives add jump stat.jump

    after that, you would have to add the armor testing, do whatever explodes and finally reset.

    For the armor testing you could also simply do

    /scoreboard players set @a[score_jump_min=1,score_jump=1] jump 2 {Inventory:[{Slot:103b,id:"minecraft:diamond_helmet"},{Slot:102b,id:"minecraft:diamond_chestplate"},{Slot:101b,id:"minecraft:diamond_leggings"},{Slot:100b,id:"minecraft:diamond_boots"}]}

    or something similar.

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on Is it possible to target two entity names at once?

    Hey,

    first of all, it is impossible to do two things at once. But you can do two things one directly after the other (for example by using chain command blocks), which would be close enough in most cases since nothing can be done by the game in between).

    So the simplest solution to your problem would be to use two command blocks, one for each, this should work in most scenarios.

    You could most likely also use tags as long as you can assure that they are used in the same tick as they are created (which will prevent new ones being summoned in between).

    Or possibly you could just summon them in with tags.

    Hope this will help.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Can I rotate a structure 90 degrees using command blocks?

    You can not do it using commands but you could use structure blocks. Simply save your structure and then load it in the same position but with a 90-degree rotation. You can use commands like /setblock and /blockdata to interact with the structure blocks.

    Posted in: Redstone Discussion and Mechanisms
  • To post a comment, please or register a new account.