7

I'm trying to make a PVP map where some players can walk through the air by having blocks getting placed underneath their feet. This would normally be easy, except the server I'm making this on is stuck on 1.7.10 so I can't use the /execute command. Is it possible to do this without 1.8 in vanilla minecraft?

  • 1
    Are you looking for only Vanilla Minecraft or Mods as well? – Jason_ Feb 29 '16 at 2:37
  • 1
    Hmm... I don't believe this is possible in 1.7 without server plugins or mods, since you can't use execute to perform commands relative to a player. I'll look into getting a solution for 1.8 just in case the server updates. – Unionhawk Mar 1 '16 at 1:40
  • Should the platform change its height? – QbsidianH20 Mar 2 '16 at 20:33
  • K. first off sorry it took so long to respond. i don't know if will believe me when i say this but this is the same guy who posted the original question. its just i posted this question as a guest and now i'm responding with a real account.(it took so long because i got a new account and had to build up sufficient rep to comment). but @QbsidianH20 i do want the platform to change its hieght. – gamer103 Apr 29 '16 at 0:37
2

Why are you stuck with 1.7.10? I don't know of any way to do it in 1.7.10, but I know in 1.8+. You can try using the /execute command for that. If your username is Metal_Mario2, then you could do this:
/execute Metal_Mario2 ~ ~ ~ setblock ~ ~-1 ~ glass or whatever block you want to place. You would have a clock or have the command block not require redstone. This command will place a glass block right underneath you, in ~ ~-1 ~ says at the same x and z position but 1 block beneath. You can change other parts of this command to work with any entity, or using @a, @r, @p, @e or any username as long as they are currently in the world in place of Metal_Mario2. If you want to use an invisible block, you could use the barrier block, which has a hitbox but can't be broken in survival mode. To remove the blocks around, you can use the same command except with maybe 8 other command blocks that each remove one of the blocks around you, as shown in this:

AAA
ABA
AAA

Where the 'A's are the blocks to remove and the B is the block left in the middle. To remove blocks, you can just place air where the block you want to remove is.

  • By stuck, the OP probably means they don't want to update their server. – Timmy Jim Dec 3 '16 at 19:23
0

player relative commands, can't really be done without /execute

so to do what you want, you'll need a /setblock for every location a block could be placed, which isn't very fun

not to mention you'll need something to remove the blocks when not needed, and to tell which command blocks need to be run according to where the players are located

so without /execute its going to be a lot of work

you can't even teleport boats for the players to "walk" on, with out @e which is added in 1.8

-1

You might want to try /setblock ~ ~-1 ~ (player name) (block) and run it on a fill clock. However, you might not be able to direct this towards certain players without manually putting it in. Another idea would be to check which players have whatever item and then write the setblock commands using that data. How exactly do you want to select the players who can do that?

  • Your syntax for /setblock is incorrect. The correct syntax is /setblock <x> <y> <z> <block> [Damage] [Datatag]. As you can see there is no room for player selection, and uses relative coordinates from the command block. To do that, you really do need to use /execute. – ash4fun Apr 8 '16 at 23:13
  • Please check to see if your answer works before publishing it – KenzoEngineer Jun 20 '16 at 2:18
-2

Here's a similar idea:

You could make it so the ground is water. The water would kill you if you fell in. Then give everyone the boots with the Frost Walker enchantment (makes it so ice spawns under your feet and you can walk on water). Then have swords be enchanted with knockback and/or punch bows so players can knock each other into the water.

  • 2
    The Frost Walker enchantment wasn't added until 1.9 so it isn't in 1.7.10. – SevenSidedDie May 9 '16 at 22:07
  • Also i don't want everyone to have this ability. – gamer103 May 14 '16 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.