1

In Minecraft 1.13.2 PC JAVA creative mode

Previous title of this question was : What is console command to fly in creative mode? supposing an issue with 'flying'.

I want to execute multiple functions (from function files)

To be executed is a series of circle ploting in order to create a circular tower.

The code for the cercle:05 function file is working has expected in game. It clones the block from underneat the executer to plot a circle around @s then teleport @s 1 block over.

cercle:05

clone ~ ~-1 ~ ~ ~-1 ~ ~-5 ~ ~0
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~-3
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~-2
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~-1
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~1
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~2
clone ~ ~-1 ~ ~ ~-1 ~ ~-4 ~ ~3
clone ~ ~-1 ~ ~ ~-1 ~ ~-3 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~-3 ~ ~-3
clone ~ ~-1 ~ ~ ~-1 ~ ~-3 ~ ~3
clone ~ ~-1 ~ ~ ~-1 ~ ~-3 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~-2 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~-2 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~-1 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~-1 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~0 ~ ~-5
clone ~ ~-1 ~ ~ ~-1 ~ ~0 ~ ~5
clone ~ ~-1 ~ ~ ~-1 ~ ~1 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~1 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~2 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~2 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~3 ~ ~-4
clone ~ ~-1 ~ ~ ~-1 ~ ~3 ~ ~-3
clone ~ ~-1 ~ ~ ~-1 ~ ~3 ~ ~3
clone ~ ~-1 ~ ~ ~-1 ~ ~3 ~ ~4
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~-3
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~-2
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~-1
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~1
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~2
clone ~ ~-1 ~ ~ ~-1 ~ ~4 ~ ~3
clone ~ ~-1 ~ ~ ~-1 ~ ~5 ~ ~0
clone ~ ~-1 ~ ~ ~-1 ~ ~ ~ ~
tp ~ ~1 ~

My problem is to execute multiple times this function (cercles:05)

I tried with basic code line writing function cercles:05, then execute as @s ~ ~ ~ run function cercles:05 but nothing works.

maketower

execute as @s run function cercles:05
execute as @s run function cercles:05
execute as @s run function cercles:05
execute as @s run function cercles:05

Both files are in the correct folder, available within the ingame command-line but the result is not working because @s seems to falls down on previous block after /tp.

Any clue on how to make this work / the console command to fly?

ps. Can someone with 300 reputation create tags 1.13, ability for me?

  • Is this Google translated? The answer to the title is "press either space or F3+N twice", but the question text is something about functions and cloning. Also, the tags you mentioned don't exist and they would be confusing (and therefore deleted) if they existed. You also seem to want to execute a function multiple times, but somehow it doesn't work? Why? – Fabian Röling Dec 10 '18 at 9:43
  • Hello @FabianRöling , well, no it is not google.translated but feel free to correct my english if it can make more fluid. I will modify title for a better up to the point one. I want the /console command to fly. Also, there is a significant difference inbetween 1.13 and previous to 1.13 versions of minecraft, is why i suggested a tag creation. So, yes, execute a function a number of times but it does not work. I suspect because @s is falling back on block instead of beeing teleported 1 block upper. – Milche Patern Dec 10 '18 at 13:22
  • Your function might not be working because a command is typed wrong. The tp command at the end catches my eye because you did not specify who to tp. Use "tp @s ~ ~1 ~" and see if that works? If the function is valid you should be able to type /function then the tab key, and the function name should come up. – SpiceWeasel Dec 10 '18 at 16:14
  • TY @SpiceWeasel for your comment. In Java and Bedrock edition, the <target> can be omited and defaulted to 'self'. See : minecraft.gamepedia.com/Commands/teleport . I gave your suggestion a try, but no result. – Milche Patern Dec 10 '18 at 19:58
  • As yes, I have forgotten. What about in your datapack folder? Is your pack.mcmeta correctly formatted? Does your function have an ANSI text format? EDIT: No wait, that can't be it, just remembered you said everything there was orderly. Do you have to use the execute commands for all those clone commands? – SpiceWeasel Dec 10 '18 at 20:05
0

I don't have a clue on why this isn't working. It should, and I've tried all the tricks I know. My suggestion? Get rid of that function and copy the entire set of commands four times, but with one addition - use "execute as @a[tag=tower] at @s run clone...". When you just want that cercle, use the function. If you want the tower, tag yourself with "tower" and run the same function.

Sorry, that's all I got. This could be a bug or a removed feature to use the function command within other functions (which I doubt). I'll tell you if I find the real answer later.

  • Thank you, but your suggestion of copying the entire set of commands will not work for me, i am doing this so i can create towers of different radius and height. I will give a try with "execute as @a[tag=tower] at @s run clone...". Post edit : we have progress – Milche Patern Dec 10 '18 at 20:37
  • Ooh, I have an answer to that problem. It will let you create a cylinder that is fully customize-able, from what kind of blocks it uses to how long it is to how big the radius is. Would you like me to tell you on how to do that with just one function? (it's very complex) EDIT: On second thought it's not only very complex but it can also get very laggy, and I don't know how much use you'll be able to get out of it. Perhaps it would be best if I keep helping you with the original answer? – SpiceWeasel Dec 10 '18 at 20:40
  • Post edit : we have progress with 'execute as @s .. at @s .. " I could run the 4 functions .. I come back to you later with progres ... !!! – Milche Patern Dec 10 '18 at 20:44
  • @MilchePatern Oh, so did you figure it out? – SpiceWeasel Dec 10 '18 at 20:45
  • i have to read about 'execute' command .. i now think it was a relativity issue since all the inner functions were executed at the same origin. 'execute as @s at @s ... ' fixed my thing. Now, i am on a good way to self answer this. ;) – Milche Patern Dec 10 '18 at 21:08

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.