MR_Classy
Members-
Posts
21 -
Joined
-
Last visited
Everything posted by MR_Classy
-
And I'm aware the server should be the only one aware of what recipes exist, issue is the client also generates its own config instead of getting the info from the server. On that note, I looked around a bit more and apparently the issue might be that I'm running logical server code on a logical client.
-
cuz i was trying to find a way to stop the config file from generating in a random order and that was the only way i found how to do it, seemed a bit weird but didnt know how else. And calling them in the main class public PotsNStuff() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); bus.addListener(this::setup); ConteinerTypeInit.CONTAINER_TYPES.register(bus); ItemInit.ITEMS.register(bus); EffectInit.EFFECTS.register(bus); RecepiesInit.RECIPE_SERIALIZERS.register(bus); PotionInit.POTIONS.register(bus); ModLoadingContext.get().registerConfig(Type.SERVER, PnsConfig.SPEC); PnsConfig.loadConfig(PnsConfig.SPEC, FMLPaths.CONFIGDIR.get().resolve("potsnstuff-server.toml").toString()); MinecraftForge.EVENT_BUS.register(this); }
-
Sorry, im kinda new to this and not 100% sure which part does that. This is the code i use to initiate the config ModLoadingContext.get().registerConfig(Type.SERVER, PnsConfig.SPEC); PnsConfig.loadConfig(PnsConfig.SPEC, FMLPaths.CONFIGDIR.get().resolve("potsnstuff-server.toml").toString()); And the actual config class https://pastebin.com/BNaTVsjT
-
Ok, i mightve explained it wrong. Im trying to create a config for a potions mod, specifically to enable or disable crafting of those potions, so i dont want players changing those values. However, when i try to remove a recipe server side, the recipe still shows up ingame (the actual potion cant be crafted, but if i use something like JEI to check out how to craft it, the recipe is loaded in). My understanding was that if something like a recipe gets turned off on the server side, the players shouldnt be able to still see it ingame.
-
[1.16.5] Help needed with creating custom Crossbow ammo
MR_Classy replied to MR_Classy's topic in Modder Support
I see, that sucks... Thanks for the quick reply -
Hi, Im trying to create a custom potion item that can be shot from a crossbow. The potion item is already implemented in the game and works as intended. However, i cant figure out how to add that item to the pool of items a crossbow can fire. I tried looking through the base game code, but i couldn't find anything other than methods for arrows or firework rockets. My experience with modifying base game items is non existent so i have no idea where to even start. Any and all help is welcomed.