-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
[1.16.1] How create a new slab block with Eclipse?
Draco18s replied to beestrug's topic in Modder Support
"create" is a method name, it is not some special magic Java keyword. Go into the source code of the DeferredRegister class, find its create method, and look at it. -
[1.15.2] Make a method return a value from a capability
Draco18s replied to squidlex's topic in Modder Support
Watch this: https://www.youtube.com/watch?v=FyCYva9DhsI -
[1.15.2] Cannot get overridden block methods to run
Draco18s replied to mrcobalt124's topic in Modder Support
Yes. Creative mode bypasses a lot of things. In this case, hijacking left-click and immediately setting the block to air. -
Uh... Its not a World, but it still has all the info you should need.
-
[1.16.1] How create a new slab block with Eclipse?
Draco18s replied to beestrug's topic in Modder Support
# has special Javadoc meaning, it is not meant to be a literal character you use. Look at the create method and figure out what to do. -
About The WorldGenTrees Class Was Outdated
Draco18s replied to Luo_Shijian's topic in Modder Support
How the fuck does that help anyone? -
About The WorldGenTrees Class Was Outdated
Draco18s replied to Luo_Shijian's topic in Modder Support
If those extensions don't do what you need, either write your own, subclassing an existing one, or the abstract one, depending on your needs. -
Well, you registered a new keybinding. Did you create a static reference to hold it? Did you do anything to make sure that reference had a value?
-
Looks like the last time you modded was in 1.7 or there abouts. The registration system has changed three times since then, partially to keep up with changes in Mojang code (items and blocks are now entirely stored based on their fully namespaced registry names, for example) and partially to make things more robust (and prevent people from doing stupid fucking shit like creating new items at run time, registering conditionally based on configs, or creating registry entry objects too early). You're going to want this first off: https://mcforge.readthedocs.io/en/1.15.x/concepts/registries/ Second, go look at the vanilla Item class (and the interface it implements, IForgeItem) in order to find the new signature for the method you're trying to override. Remember: there are two hands now, so that method now takes a Hand parameter. Be sure to check which hand is being used!
-
[1.15.2] Make a method return a value from a capability
Draco18s replied to squidlex's topic in Modder Support
Or refactor your code to access the capability directly instead of through a method so you can use ifPresent properly. (That is, your method serves no purpose) -
How to remove X-Ray Texture from custom model black?
Draco18s replied to Help!'s topic in Modder Support
Don't return empty. Actually spend two seconds figuring out what volume your block actually occupies and return that. Tip, if it doesn't visually fill the entire face, don't return a volume that fills the entire face. Because (surprise) that volume is also used to draw the bounding box that you can CLICK ON. -
Thousands. Whatever they need to be for. It is easier to ask us how to do something.
-
[1.15.2] What event fires after all items are registered?
Draco18s replied to Fractangle's topic in Modder Support
"Listen for" is not the same as "implement or override." Yes, and in such a case--if you were using tags to identify items--you'd want to be notified that the tags have changed and to re-identify items. That may not be important for you. -
[1.15.2] What event fires after all items are registered?
Draco18s replied to Fractangle's topic in Modder Support
TagsUpdatedEvent is a good one, that lets you query by tag, too. Otherwise FMLLoadCompletedEvent. -
Implement IRecipe (or subclass an existing implementation) and register a serializer with the Forge registry system.
-
Could be. There's still a lot of methods in 1.16 that haven't been properly named yet
-
getSaveHandler is part of ServerWorld now, rather than World. getSeed is still getSeed and is declared in the IWorld interface, so all Worlds should have it.
-
[solved][1.13.2] how to use forge ore dictionary in recipes?
Draco18s replied to Torojima's topic in Modder Support
No shit. Start your own thread. Then why are you here and not asking for help where CraftTweaker is the subject? This is the Forge forums, we help people with Forge. Secondly, with JSON recipes, CraftTweaker is completely unneccessary. -
[1.16.1] [Solved] I need help with containerItems
Draco18s replied to BlueBoat227's topic in Modder Support
That's not what that means. It means "use the version of the same method that takes an item stack parameter." As in, sensitive to data (of type ItemStack) that can change. You'll find this method detailed in the interface IForgeItem, which Item extends. -
Your block does not have a HALF property.
-
[1.16.1] How create a new slab block with Eclipse?
Draco18s replied to beestrug's topic in Modder Support
Supply the correct types inside the <>. -
[1.16.1] [Solved] I need help with containerItems
Draco18s replied to BlueBoat227's topic in Modder Support
Have you followed directions? -
Then you're fine.
-
Once ever, or?