Everything posted by Animefan8888
-
Is there an updated version/alternative to CTM or Forge Multi-layer to make solid blocks with SPECIFIC portions as transparent?
There isn't one in vanilla or within forge that uses two RenderTypes. And I'm not gonna scour github and other source sites looking for it. Did you test the usage of the method?
-
[1.15.2] Any good resources for learning how to add a throwable item?
public class MyEntity extends ProjectileItemEntity Done. You should replace this with just the string literal, "MODID:shuriken_entity"
-
[1.8.9] Help with item drops
That's fine for them. But Forge's policy is stated in the LTS and I agree with it. Do you see Mojang actively supporting 1.8.9? Nope.
-
Use flan's mod apis
You can get an Item from another mod via the registry. Check out the ForgeRegistries class.
-
[1.15.2] Change path for custom item model.
You can't do models/staff but you can do models/item/staff. Just make the registry name include the /staff part.
-
[1.8.9] Help with item drops
1.8.9 is no longer supported on this forum. For more information please read the LTS at the top of the page.
-
[Solved] [1.15.2] Event Handler not Detecting Events
When registering this way your methods need to be static. And I don't know how I didn't notice that on the first post.
-
1.15.2 Server Error Can not hotload overworld. This must be loaded at all times by main Server.
Oh you posted in the wrong subforum then. The Modder Support subforum is a place for people to ask about code used to make Minecraft Forge mods. You shouldn't be using Java 13. Use Java 8.
-
[Solved] [1.15.2] Event Handler not Detecting Events
Show the actual code you have.
-
Get block in coordinates below player
1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information please read the LTS at the top of the page.
-
1.15.2 Server Error Can not hotload overworld. This must be loaded at all times by main Server.
Post your code. Preferably as a github repo. If not just your main class for now.
-
[1.15.2] Zoom effect in
It's called every tick.
-
[Solved] [1.15.2] Event Handler not Detecting Events
This even doesn't exist within Minecraft Forge 1.15.2. Did you perhaps mean LivingEvent.LivingJumpEvent?
-
[1.15.2] Zoom effect in
Posting an event to the event bus doesn't do what you want. You should instead subcscribe to the FOVUpdateEvent. Read the documentation on events here.
-
How to make items use up your XP bar? (1.14.4)
Assuming you have a PlayerEntity instance called player. player.giveExperiencePoints(-10); This will remove 10 experience points from the player. player.addExperienceLevel(-1); This will remove one level from the player.
-
[1.15.2] Am I just stupid and don't understand events/logs or what
The mod event bus is only for mod life-cycle events like the FMLCommonSetupEvent. The event bus you want to use is the MinecraftForge.EVENT_BUS.
-
[1.15.2] Am I just stupid and don't understand events/logs or what
The log methods not logging is an identifier that the method isn't running at all. Which means you didn't register it correctly. How did you register it.
-
How to make items use up your XP bar? (1.14.4)
It's stored right in the PlayerEntity class. Specifically PlayerEntity::giveExperiencePoints
-
Open Gui Help
1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.
-
How to render my custom shield so it will display the vanilla shield texture?
Not sure which part you are answering. But you don't have the most up to date mcp mappings. Also what part about Did you not understand? Does ShieldRenderer::render even get called?
-
Creating chest with items
I've got a couple of things to say. First and foremost: Please learn Java before trying to make a Minecraft Forge mod. Java itself is hard to learn let alone trying to learn an extensive API like Forge. Secondly: If you crash or an exception is thrown there is a lot of useful information inside the stacktrace. You should read it. If you don't know what it means google it. If that doesn't supply you with answers/enough information post the error. Thirdly: Why? Why not just put this in the accept function?
-
How to render my custom shield so it will display the vanilla shield texture?
You know you can edit posts, right? Also please update your mcp mappings. If you need to know how to do that google it.
-
Creating chest with items
If simulate is true it only simulates adding the ItemStack to the IItemHandler. Why? Why not just put this in the accept function? Where is this code being called? Post all of it,
-
Creating chest with items
Read the documentation on capabilities here.
-
error on server: "NoClassDefFoundError: net/minecraft/client/entity/EntityPlayerSP"
1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.
IPS spam blocked by CleanTalk.