Everything posted by Draco18s
-
uninstallation
1.7.10 is no longer supported. Update.
-
Having trouble overriding vanilla recipes
https://github.com/MinecraftForge/MinecraftForge/issues/6287
-
Guidance on Custom Recipe Type
I'm not sure what's so hard about the recipe json files: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/harderores/recipes/ores/gold_ingot_from_smelting.json
-
TileEntity read/write not working properly
I am almost certain that this is wrong. Don't set this field yourself, use @ObjectHolder annotations.
-
Crafting recipe doesnt work
Also, you used the specific item this time instead of the tag.
-
Adding a new EnchantedBookItem to ItemGroup, Item doesn't show
This code does actively nothing.
-
Adding a new EnchantedBookItem to ItemGroup, Item doesn't show
This doesn't do what you seem to think it does. Especially not when you do this afterwards:
-
Help with custom survival inventory 1.15
Point. But I think the concept that was not being understood was communicated.
-
Help with custom survival inventory 1.15
IItemHandler is a capability. You attach it to the player. CapabilityItemHandler.ITEM_HANDLER_CAPABILITY
-
Help with custom survival inventory 1.15
Because it's an inventory that belongs to the player.
-
[1.15.2] Can't use attackEntityFrom to fully kill player
Show your code. All of it. Preferably as a git repo.
-
Smelt and item and make it give you multiple of an item
You can't. The vanilla code for the cooking/smelting process is set to only generate 1 item. If you want your ore to smelt to multiple ingots, have it harvest into an intermediary item that each smelts into an ingot.
-
[SOLVED][1.14.4]How do I make a block that looks like a cauldron?
The water texture is colored by the biome. You need to register your block as being colorized (this is a client-side-only thing that has to be done, search for IBlockColor if I remember the interface correctly).
-
[1.15] Register Items After Main Registration
No. Always register all of your items. Registration happens before config loading on purpose.
-
[1.15] Loot Table Function/Condition Issues [SOLVED]
This should also be specified by your loot json file: https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/test/resources/data/global_loot_test/loot_modifiers/wheat_harvest.json#L5-L8 This is correct.
-
[1.15] Loot Table Function/Condition Issues [SOLVED]
Show your code.
-
Injecting bytecode into vanilla classes
Its done through a Javascript loading system. I have no idea how it works. You should really try to get this working through events, capabilities, and other non-ASM methods first, though. The main problem you have is not ItemStacks not being ticked, but containers not applying update ticks to their inventory and there's no way to enforce that compliance. But if you want to coremod, feel free to figure out how to do so yourself. Its supported only in the sense that a system is available for those that know how to use it because core modding is a last resort.
-
[1.15] Get capibily from player as interface
Line 47 of your code is...?
-
[1.15] Get capibily from player as interface
Or you can use ifPresent. player.getCapability(AllergiesProvider.ALLERGIES_CAP).ifPresent(allergies -> { //your code here });
-
[1.15.2] Weird function name
If you downloaded and decompiled someone else's mod, you will never see MCP names.
-
[1.15.2] Is it possible to store data in normal blocks?
I haven't messed with it in a while. I'm not sure how I'd handle it today. (I need to figure that out at some point, but I'm blocked by other things that need to be available first)
-
Confusion about VoxelShapes and BlockStates in 1.15.1
No, because that's not what BlockState does.
-
[1.15.2] Is it possible to store data in normal blocks?
This is a very complicated thing and almost no one does it because its complicated and a pain in the ass because vanilla doesn't support it directly. This is the best example I have, but doesn't store data at the block level, but rather in 16x16x8 block-groups. Mind, its old code.
-
[1.15.2] Weird function name
Search the forums for "MCP names" "SRG names" and "Notch names" (or "Mojang names"). There's like nine people who've asked that same question just in the last nine months. Mappings are the SRG -> MCP names translation guide.
-
[1.15.2] Waiting few seconds before action
Schedule an update tick for your block, then use the update tick method in the block class (override it).
IPS spam blocked by CleanTalk.