-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
I need to send a packet after nbt is read and don't know how
Draco18s replied to hijackster99's topic in Modder Support
Override getUpdatePacket, getUpdateTag, and onDataPacket. These methods specifically exist to synchronize TE data to the client. -
[1.15.2] How to edit raw vanilla code with forge
Draco18s replied to KdotDevelopment's topic in Modder Support
You don't. Specifically. -
Well, there's an either/or thing here. Instance: non-static methods. Class-type (which includes the annotation): static methods.
-
That's not the problem. Unfortunately I need a working git repo to poke at things in enough detail.
-
Oh sure. Just saying that there is a reason to put things there, just not this one.
-
(Unless you're trying to override a vanilla recipe)
-
Apparently you didn't look at Items.java where things like cooked porkchop get instantiated to find out what classes were involved.
-
I could tell you how to do this with Custom Ore Generation, but it needs updating, and I can't do it alone.
-
I wonder how vanilla does it. Also, Code Style #4
-
[1.14.4] Minecraft Stuck on loading world 100%
Draco18s replied to kowagatte's topic in Modder Support
So this? public ItemEntity(World worldIn, double x, double y, double z, ItemStack stack) { this(worldIn, x, y, z); this.setItem(stack); this.lifespan = (stack.getItem() == null ? 6000 : stack.getEntityLifespan(worldIn)); } Lets look at that constructor for a moment. It has the following parameters: World worldin double x double y double z ItemStack stack Are any of these the type EntityType? -
[1.15.2] How do I create a crafting recipe which damages an item?
Draco18s replied to superminerJG's topic in Modder Support
Functionally an itemstack with a size of zero is the same as an empty stack. So do what you like. -
Your parent (in your model file) needs to specify the domain, eg. minecraft:block/cube_all eg: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/assets/harderores/models/block/millstone.json#L2
-
Your json file is invalid.
-
So. When I said you needed static, your code looked like this: @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @SubscribeEvent public void onKb (LivingKnockBackEvent e) { using an annotation. Now it looks like this: MinecraftForge.EVENT_BUS.register(new KnockbackR()); ... public static class KnockbackR { //Tried without static, tried with only the class static. public static void onKb(LivingKnockBackEvent e) { System.out.println("Called"); no, not called } } Why did you change something I didn't tell you to change? Now the fact that your method is static is the problem. (The class being static is basically irrelevant, but it should be static anyway, but that's not the method its the class). You HAVE THIS for godsake. @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @SubscribeEvent a normal void WHICH STILL WORKING } Although it appears you couldn't be arsed to show the method signature of a working event, because you also have this for some reason: MinecraftForge.EVENT_BUS.register(new RegistryEvents()); So who knows which one of the two registrations is working for the handlers that are working correctly.
-
https://lmgtfy.com/?q=java+static+method
-
Forge With PE and Win10 Editions Running OptiFine
Draco18s replied to +=WhatSteve - Forge's topic in Support & Bug Reports
...Still has nothing to do with Forge. (And I do know what capes are, thanks) -
I said you had two problems. Did you fix both?
-
Think of an event bus like an email address. If you only get work related emails at your work address, then write a bot to tell you when you have new messages from your boss, but tell it to check your personal email address. Would you expect it to work? No? Why not?
-
Loot tables and crafting recipes not working.
Draco18s replied to SorestPegasus's topic in Modder Support
Some data file that you created has caused an error and as a result all datapack data was not loaded. -
Forge With PE and Win10 Editions Running OptiFine
Draco18s replied to +=WhatSteve - Forge's topic in Support & Bug Reports
Are those versions the Java Edition of Minecraft? No? Then no. OptiFine does their own shit and is incompatible with Forge. This is not Forge's problem to fix. You can sometimes get them to run together, but weird crashes may occur. This is not Forge's problem. What. What does this have to do with Forge?