How can I make something like the vanilla /fill command inside my plugin? - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: How can I make something like the vanilla /fill command inside my plugin? (/thread-3336.html) |
How can I make something like the vanilla /fill command inside my plugin? - mueller_minki - 02-18-2021 Hello, I'm running a small Server with minigames and I need a way to fill the layers of my spleef game after it has been played. I originally thought that I could just use /fill but I found out that that doesn't work because it isn't implemented yet. My idea is simple: /fill but as a plugin. There is one problem though: I've never coded in lua before. I have a bit of experience in Python and Bash but thats about it. I did a bit of research but all I could find was the "SetBlock" Function but I don't know how to make an command, get arguments and get it working with command blocks. Can anybody help me with that? RE: How can I make something like the vanilla /fill command inside my plugin? - NiLSPACE - 02-18-2021 Hi, welcome to the forum! We've got a page explaining how to write your first Cuberite plugin here: https://api.cuberite.org/Writing-a-Cuberite-plugin.html Perhaps that will clear things up. I'm not sure what /fill does, but if you want to change blocks the cWorld:SetBlock is a way to do it. There is also cBlockArea, but that's a bit more advanced. I believe commandblocks can only execute console commands in Cuberite. They need a pretty large rewrite to become useable. |