Everything posted by Draco18s
-
IClassTransformer on 1.15.2?
Yes. I love working within the Forge framework and have adopted several of its patterns in my own projects (eg. event systems and registry objects, though my registry system is often little more than a dictionary<string,SomeType> that doesn't deal with a lot of the validation Forge does, but I'm also not an idiot trying to register things at the wrong time, or with duplicate names).
-
How can I understand if an Item is a crop?
And not all things that plant crops are items that are BlockItems.
-
[Solved] [1.16.1] Block Registration
- [1.15.2] IBlockColor not changing blocks color.
You do know that this is client-side-only right? https://github.com/kregerl/Potion-Cakes/blob/1.15.2/src/main/java/com/loucaskreger/potioncakes/EventSubscriber.java#L10- Custom armor model rendering [SOLVED] i was just very dumb
I don't know where you heard this, but it is objectively wrong.- Custom armor model rendering [SOLVED] i was just very dumb
1.7 isn't supported any more, thus against forum policy. Those threads are locked in order to prevent people from helping give support to an unsupported version. There's a green banner at the top of every page about it.- Custom armor model rendering [SOLVED] i was just very dumb
This is a forum, not Stack Overflow. There's no need to lock threads unless they violate actual rules.- [ 1.16.1 ] X-ray glass render issue
Do people not know how to use search? https://forums.minecraftforge.net/search/?q=x-ray block&type=forums_topic&updated_after=any&sortby=relevancy&search_and_or=and 2nd, 5th, 6th, 10th, 11th, 12th, 13th, 14th, 16th, and 18th results are all this problem.- [1.14.4] Can forge mod implement the "hat" function of bukkit's ess plug-in?
private void Hat() { //what does it do? } glad to help- [1.14.4] Can forge mod implement the "hat" function of bukkit's ess plug-in?
Cool. What's the plugin do? This is the Forge forums, most of us (probably all of us) have never used Bukkit.- [1.15] Custom block isn't creating a tile entity even when IForgeBlock::hasTileEntity and IForgeBlock::createTileEntity are overridden.
You're overriding Block#hasTileEntity not IForgeBlock#hasTileEntity public boolean hasTileEntity(BlockState state)- [1.16.1] Custom recipe type not working
You write a method (eg. a lambda) that satisfies the constraints of Supplier<T>. That is, it is a zero parameter function that returns an instance of <T> You already know what the <T> is, too, its right there:- [1.15.2] How do I change the Description/Lore of an item?
In other words: Right-click -> Open Type Hierarchy- [1.16.1] Custom recipe type not working
A "supplier" is just a function (such as a lambda) that takes no parameters and returns a value of a specified Type; it supplies a thing. A consumer is the opposite: it consumes a given Type as its only parameter and returns nothing.- [1.16.1] Custom recipe type not working
When I say the same way I mean literally the same way you would a block or an item, just not a block, but a recipe serializer. YOU don't, that's what @ObjectHolder is for (not that you actually need a field for it anyway). That's for ITEMS, you want RECIPIE_SERIALIZERS.- [1.16.1] Custom recipe type not working
The same way you register other IForgeRegistryEntry objects.- Armor texture is janky - 1.15.2
Post your code.- [SOLVED][1.14.4] from config to Ingredient for ingredient list
This is what tags are for. Mods that make tags visible have the onus on them to not make it overwhelming.- [1.15.x] Trying to insert a custom item into vanilla dungeon chests using Global Loot Modifiers
Modifying loot tables directly is not inter-mod compatible.- IClassTransformer on 1.15.2?
Using the available hooks Forge already provides. Namely events and registry substitutions, but also tags, and json data files (and their extensions).- [1.15.2] Forge blockstates format
TLDR Forge blockstates were removed because vanilla states are smarter now.- Minecraft mod errors - Eclipse
You have an inner class with the same name as the outer class.- [1.16.1] missing == null check in WrittenBookItem.java
1) ItemStacks are never null 2) This method is only ever called on a book that has been written to, which implies that it has NBT data already- [1.15.2] Question about "Reflections"
Generally that's the correct way yes. Of course, you haven't shown your code.- Help with ItemStack values across classes [1.16.1]
This is just some random ItemStack you created that contains nothing (I am not even sure that's a valid constructor...) You need to actually get the itemstack in the player's hand, which you would have to do when you create your thrown entity (and appears you are already doing): He's not creating item entities, he's creating snowball like thrown entities. - [1.15.2] IBlockColor not changing blocks color.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.