Jump to content

Search the Community

Showing results for tags 'commands'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Minecraft Forge
    • Releases
    • Support & Bug Reports
    • Suggestions
    • General Discussion
  • Mod Developer Central
    • Modder Support
    • User Submitted Tutorials
  • Non-Forge
    • Site News (non-forge)
    • Minecraft General
    • Off-topic
  • Forge Mods
    • Mods

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


XMPP/GTalk


Gender


URL


Location


ICQ


AIM


Yahoo IM


MSN Messenger


Personal Text

Found 6 results

  1. I have a command structured like this: /rank list /rank upgrades /rank nextLevel I want to allow the server to send the command /rank list because it doesn't interact with players, meanwhile upgrades and nextLevel are targetting a player. In my current condition I'm checking if the command context's source's player is not null, but do exist a way to map those argouments for players only so they don't even show up in autocompletations? PS (forgot to add the code) @SubscribeEvent public void onRegisterCommands(RegisterCommandsEvent event) { // builds command tree structure. LiteralArgumentBuilder<CommandSourceStack> root = Commands.literal("rank"); root.then(Commands.literal("list") .executes(this::onListRanks)); root.then(Commands.literal("upgrades") .executes(this::onDisplayPlayerUpgrades)); root.then(Commands.literal("nextLevel") .executes(this::onIncreaseCurrentPlayerLevel)); event.getDispatcher().register(root); }
  2. Hello, this is the first time I've created a mod for Minecraft and my mod is for an entity that plays in your world. I've survived several tutorials and documentation, but I still can't do what I want to do. Can you tell me why I'm getting this error? Everything looks good. no ? Forge for 1.21.4 changelist : https://gist.github.com/ChampionAsh5357/d895a7b1a34341e19c80870720f9880f Repos Github for my mod : https://github.com/Maxime66410/TheFakePlayer Last Log : https://gist.github.com/Maxime66410/246f983f2d791469ae87a77825527da9 Caused by: java.lang.NullPointerException: Registry Object not present: thefakeplayer:fake_player_entity at TRANSFORMER/[email protected]/net.minecraftforge.registries.RegistryObject.get(RegistryObject.java:193) ~[forge-1.21.4-54.1.3_mapped_official_1.21.4-recomp.jar%231!/:?] at TRANSFORMER/[email protected]/org.furranystudio.thefakeplayer.Events.ClientModEvents.entityAttributes(ClientModEvents.java:27) ~[main/:?] at TRANSFORMER/[email protected]/org.furranystudio.thefakeplayer.Events.__ClientModEvents_entityAttributes_EntityAttributeCreationEvent.invoke(.dynamic) ~[main/:?] at SECURE-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:46) ~[eventbus-6.2.27.jar:?] at SECURE-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-6.2.27.jar:?] at SECURE-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:288) ~[eventbus-6.2.27.jar:?] at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:184) ~[javafmllanguage-1.21.4-54.1.3.jar:54.1.3] SOLUTION : ModEntities.ENTITIES.register(modEventBus); -> public Thefakeplayer(FMLJavaModLoadingContext context) https://docs.minecraftforge.net/en/1.21.x/concepts/registries/ https://github.com/MinecraftForge/MinecraftForge/blob/1.21.x/src/main/java/net/minecraftforge/registries/DeferredRegister.java
  3. Hello! I recently approached modding and Java programming in general. But I'm very used to programming in Minecraft "code", so .json files and commands. In fact, for example, with Terrabalnder it was quite simple and intuitive to convert biome, surface rules and positioning files to run whit forge. Instead what I'm having difficulty with is switching Minecraft things I used to do whit commands to java format. Things like execute a condition or position checks on a specific type of entity, even simple things like "if block ~ ~-1 ~ dirt" or "run particle...". There aren't many tutorials, so I would like to know if there are any tools, documentation or a list of procedures, methods and classes, or useful IntelliJ tooltips. Let me know leterally how from zero I can get the location of methods and informations I need to use. Thanks
  4. https://gist.github.com/it-is-allie/29645c4fb5c7131ad30181769a37d12f There is my latest crash report. I've spent probably 5 hours messing with modpacks and have gotten it almost complete but it then randomly crashes before loading all the mods? I'm not even sure. if anyone could help it would be greatly appreciated.
  5. My mod requires a DiscordRPC and Alphine and net.minecraft on a 10.0.2 Modding Gradle setup as 4.9, I do not have any of these? and I wen't to the forums to know a little about Gradle Implementations and Compiling Software.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.