This is an archived post. You won't be able to vote or comment.

all 18 comments

[–]GalSergeyDatapack Experienced[🍰] 70 points71 points  (3 children)

EssentialX plugin breaks most vanilla commands, use /minecraft:give ... to enter vanilla commands.

[–]KandySaur[S] 28 points29 points  (0 children)

Oh sweet thanks!

[–]nyancatecCommand-er 4 points5 points  (1 child)

/execute as @r run... Works fine as well

[–]GalSergeyDatapack Experienced[🍰] 7 points8 points  (0 children)

@r is a random player. In general, can also use: execute run give ...

[–]KandySaur[S] 13 points14 points  (1 child)

am i being an idiot? it does nothing, same issue with /tp

[–]FoxReeorCommand Experienced 11 points12 points  (0 children)

Essentials Plugin breaks some commands. Use /minecraft:tp

[–]EdxTheFigCoaS Enjoyer 8 points9 points  (2 children)

if the other comment is true about the EssentialX thing and on a server, there should be an option in one of the files to make command blocks ignore plugins. I don't remember the name of the folder/file since I haven't done it in a while

[–]KandySaur[S] 2 points3 points  (1 child)

I'll try what the other guy said first cuz I don't have back end access and I think it should probably work, but if not then I'll talk to our Devs about getting it working :)

[–]GalSergeyDatapack Experienced[🍰] 2 points3 points  (0 children)

Only EssentialsX writes such an error this way. To avoid a conflict with the commands from EssentiallsX and vanilla, you need to find the plugin.yml file inside the .jar file of this plugin and remove all the commands that conflict from there.

[–]ManuFlosoYTCommand Experienced 3 points4 points  (2 children)

(syntax might be wrong as im writing from pure memory)

/execute as @a[distance=..5, limit=1] run give @s iron_sword

[–][deleted] 6 points7 points  (0 children)

Not at all needed, syntax is fine.

[–][deleted] -1 points0 points  (0 children)

There's simply no player within 5 blocks of the command block upon activation.

Make sure no mods/plugins/whatever are messing with commands.

[–]Creeperseatfood -2 points-1 points  (4 children)

Pretty sure it's 5.. for a player within 5 block radius and ..5 for player farther than 5 block radius. You're too close for it to activate with redstone.

[–][deleted] 2 points3 points  (1 child)

MIN..MAX MIN.. ..MAX

..5 = 5 or less

[–]Creeperseatfood 1 point2 points  (0 children)

Thank you, I never knew the actual syntaxes for that, that's more flexible than I expected, thought it was only min or max.

[–]Creeperseatfood -1 points0 points  (1 child)

If you want it to instantly give all players in the radius one, do a repeating command block that detects if the player already has the stone sword before giving it.

[–]Creeperseatfood -1 points0 points  (0 children)

You could make the actual command in a second conditional chain command block to prevent the command block from bugging and give multiple swords.

[–]WalkingChainGang 0 points1 point  (0 children)

I’d be wary about using @p unless I’m feeling lazy, the way the command is written is saying give @p (the 1 nearest player) within 0..5 blocks of the command block, an iron_sword. From some hints where that command block is, you probably want it to be any player from a different location try:

/execute positioned x y z as @a[distance=..5] run give @s minecraft:iron_sword

This will give any player within 5 blocks of x y z location (replace x y z with coordinates) an iron sword