-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Everything posted by DavidM
-
Forge runClient does not actually load the mod
DavidM replied to cookiedragon234's topic in Modder Support
Please provide a GitHub repo of your mod. Did you set up the mods.toml? -
Orespawn does not add any items or blocks. It is a mod that controls the spawning of ores.
-
Basically the concept is to make blocks between sharp chunks take a medium value between the two sharp chunk height. Check out https://en.wikipedia.org/wiki/Bilinear_interpolation. There is also this example in applying bilinear interpolation to images https://rosettacode.org/wiki/Bilinear_interpolation.
-
There is a method in ItemFood that is called when the food is eaten (can’t remember the name of the method; use your IDE to find out). Override it and add an empty bottle to the player’s inventory whenever the food is eaten.
-
[1.12.2][SOLVED] AnimationTESR - doesn't animate
DavidM replied to ZigTheHedge's topic in Modder Support
Keep in mind that ITileEntityProvider is deprecated and should not be used. -
Depending on what you are trying to do, you could use reflection.
-
Alternatively, you can backup your world frequently.
-
You could manually apply bilinear interpolation to the terrain to smoothen out sharp mountains.
-
[Solved] Problem with 1.14.4 Modding! Can't run mod!
DavidM replied to Anonomys's topic in Modder Support
Post the entire log. -
Instead of using vanilla's update packet system for tile entities, you might want to create your own packet and handler for more flexibility.
-
Please help! "java.NullPointerException: Initializing game"
DavidM replied to kawusia's topic in Support & Bug Reports
Post the new log after the downgrade. -
IIRC Silkspawners requires a dependency mod. Check the CurseForge page of Silkspawners for more info. Why is coremodding necessary to create silk touch for spawners though?
-
How to give 3D models to vanilla armors? [1.12.2]
DavidM replied to Leggerrr's topic in Modder Support
You can replace vanilla armor with your own custom armor that is identical to vanilla armor except for the 3D texture. -
Custom TNT block doesn't work when on a server 1.12.2
DavidM replied to DeaSTl's topic in Modder Support
It is used to update the motion of entities on the client-side. It is used by packets from the server. -
Wut? No. Using 1.13 mods on 1.14 cannot be disregarded. Mods are designed for a single version of Minecraft.
-
Don’t use a foreach loop then. Use a for loop instead.
-
[Solved] What might cause tile entities shares same result?
DavidM replied to poopoodice's topic in Modder Support
Post your code. -
Identifying and blacklisting a "hack" mod on connection
DavidM replied to Matryoshika's topic in Modder Support
I don't think there would a way to detect the mod, even with a mod whitelist. What kind of packets do they manipulate, and in what way? Is it possible to detect such packet change? -
[1.12.2] Proper way to set player speed on server? (Solved)
DavidM replied to ZephaniahNoah's topic in Modder Support
Do not do it on the client, even though the player movement is handled on the client. The client can be a hack client that will simple ignore the packet. -
Override Item#addInformation.
-
I don't think 1.10 is still supported, but either way: 1. Add @Override annotation when you intends to override. 2. Read the source code of what you are extending and use the according method names from the source code.
-
ItemBase is abusing inheritance by using it to run the same code multiple times. This would work, however it would stop your Item from extending other classes. You could either do what it does (i.e. setting registry name, adding to modItemList) in your Item's constructor or when you instantiate your item. I would suggest text-based tutorials. Example being: https://github.com/Cadiboo/Example-Mod Yes I get it. So was I. Sorry if I made you think I was trying to be a jerk.
-
What... You are the one not not helping by telling OP to do stuff that are not relevant to his/her actual problem -.- His problem is not relevant to his code or his json. @Hekaryn I'm suspecting that your workspace is not set up properly, causing the resources folder to no the recognized. I would suggest to re-setup your workspace and try again.
-
1. Do not use ItemBase. 2. Do not use static initializers. 3. Most tutorials on YouTube are terrible due to their promotion of outdated methods and bad practices. Do not follow YouTube tutorials. OP: Is anything else in your resources folder working?