Everything posted by Draco18s
-
[1.8] I can break everything on client-side, but it's doing nothing at server side
1.8 is not supported here. Update. Also: Don't do this.
-
I need to send a packet after nbt is read and don't know how
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
You don't. Specifically.
-
Knockback event...
Well, there's an either/or thing here. Instance: non-static methods. Class-type (which includes the annotation): static methods.
-
[1.15.2] [SOLVED] Problems with BlockStates
That's not the problem. Unfortunately I need a working git repo to poke at things in enough detail.
-
1.15 recipes
Oh sure. Just saying that there is a reason to put things there, just not this one.
-
1.15 recipes
(Unless you're trying to override a vanilla recipe)
- Knockback event...
-
How to make an Item Edible?
Apparently you didn't look at Items.java where things like cooked porkchop get instantiated to find out what classes were involved.
-
[1.15.2] Generate Ore Near Specific Block
I could tell you how to do this with Custom Ore Generation, but it needs updating, and I can't do it alone.
-
How to make an Item Edible?
I wonder how vanilla does it. Also, Code Style #4
-
[1.14.4] Minecraft Stuck on loading world 100%
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?
- Issues with Vec3d
-
Knockback event...
- Silk Touch
- [1.15.2] How do I create a crafting recipe which damages an item?
Functionally an itemstack with a size of zero is the same as an empty stack. So do what you like.- [1.15.2] [SOLVED] Problems with BlockStates
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- [1.15.2] [SOLVED] Problems with BlockStates
Your json file is invalid.- Knockback event...
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.- Knockback event...
https://lmgtfy.com/?q=java+static+method- Forge With PE and Win10 Editions Running OptiFine
...Still has nothing to do with Forge. (And I do know what capes are, thanks)- Knockback event...
I said you had two problems. Did you fix both?- Knockback event...
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.
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
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?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.