Posted July 26, 20169 yr I've created a command that works like /fill but with a lot higher limit. So the most of the code is copyed but I get a weird error that I don't get from /fill Command: http://pastebin.com/yrnxzJGb Error: http://pastebin.com/pAPiftzU http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
July 26, 20169 yr It's a NullPointerException. Check for null at the line specified in the crash report. http://i.imgur.com/NdrFdld.png[/img]
July 26, 20169 yr Author This is the only thing on the errored line: } http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
July 27, 20169 yr Author CommonProxy: public void init(FMLInitializationEvent event) { ClientCommandHandler.instance.registerCommand(new CommandMCrafterzzMod()); ClientCommandHandler.instance.registerCommand(new CommandMM()); ClientCommandHandler.instance.registerCommand(new CommandSetBlocks()); } http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
July 27, 20169 yr CommonProxy: public void init(FMLInitializationEvent event) { ClientCommandHandler.instance.registerCommand(new CommandMCrafterzzMod()); ClientCommandHandler.instance.registerCommand(new CommandMM()); ClientCommandHandler.instance.registerCommand(new CommandSetBlocks()); } How is this changing anything? Why did you register your command to the ClientCommandHandler? This will never work, blocks must be set on the server. This ^ is your solution. Use CommandHandler to make your cmd server-sided. Call it from @EventHandler FMLServerStartingEvent. 1.7.10 is no longer supported by forge, you are on your own.
July 27, 20169 yr Author Added this to the client Proxy: public void serverStart(FMLServerStartingEvent event) { event.registerServerCommand(new CommandMCrafterzzMod()); event.registerServerCommand(new CommandMM()); event.registerServerCommand(new CommandSetBlocks()); } but it doesn't work, not in the common proxy either http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
July 27, 20169 yr It most certainly can't be in client proxy - it is SERVER command. Did you put @EventHandler on it? It should be in main-mod file (where inits are). 1.7.10 is no longer supported by forge, you are on your own.
July 27, 20169 yr Author Solved, thank you everyone http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.