Keksuccino / Biomes-in-Jars

Source code for the Biomes in Jars mod.
Other
5 stars 0 forks source link

[Feature] Commands in datapacks #1

Closed Vervixer closed 2 years ago

Vervixer commented 2 years ago

When using the command setchunkbiome in functions (As in datapacks), the log displays "com.mojang.brigadier.exceptions.CommandSyntaxException: A player is required to run this command here".

If it were possible to use it in code, then many interesting scenarios - like corrupting the world Terraria-style - become available.

Keksuccino commented 2 years ago

Hi! I would need to add coordinate arguments then. Would this work for datapacks?

Vervixer commented 2 years ago

I think so. But even without arguments it should work I guess, because if you'll take coordinates of the "summoner" of the command then you can easily change that with execute at @s positioned ~ ~10 ~ run setchunkbiome test:test for example.

Keksuccino commented 2 years ago

Mod got updated! The command now accepts coordinates! :) Thank you for your suggestion!