Jump to content

Luis_ST

Members
  • Posts

    5704
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by Luis_ST

  1. damn, you use mcp mappings use notSolid
  2. to the Block.Properties in your Block class constructor
  3. you need to set the RenderType of the block to translucent, do this in your FMLClientSetupEvent and use RenderTypeLookup # setRenderLayer you also need to add noOcclusion to your Block.Properties (if you don't do this you can look "though" the block into the world)
  4. eclipse has sometimes problems to import a forge project (it doesn't add the forge/minecraft library), try to reimport it or run the gradlew command (you need to use a .bat file), this should fix your problem gradlew command: gradlew genEclipseRuns --refresh-dependencies&&gradlew eclipse
  5. you need to set the "value" in the EventBusSubscriber annotation take a look at the forge doc -> there is a practical example https://mcforge.readthedocs.io/en/latest/events/intro/
  6. don't use onBlockHarvested, use harvestBlock instead
  7. did you use autoreglib?
  8. The Event is called BlockEvent$EntityPlaceEvent
  9. you also can try to use an AttributeModifier (Attributes#MOVEMENT_SPEED), use the ArmorItem as an example or try to manipulate the player's motion, but that's tricky
  10. you still use MCP mappings, used PlayerEntity#sendPlayerAbilities
  11. Minecraft Forge is java based, Minecraft Bedrock was programmed with C, since C and Java are not compatible it would be a lot of work to create Forge for C, so there is or will probably never be Forge for Minecraft Bedrock If you mean Minecraft Bedrock you are wrong Minecraft was originally developed for java (for the pc), Minecraft Bedrock was created by Microsoft, with the idea of a version for all devices (PC, mobile phone, xbox, playstation)
  12. try to call PlayerEntity#onUpdateAbilities after change the walkSpeed
  13. i think you can use Minecraft#getInstance()#player
  14. take a look when the Event is fired, because it's possible that the ItemStack which is given by the Event is a copy of the original, which means you can't modify the ItemStack in the Event
  15. this will only check if you play in a single player world so it will not include lan servers/normal servers like hypixel in which event do you want to play the sound
  16. No but it will return null if you use it in a only server side code part, because Minecraft class can only use on client
  17. No, no, no you need subscribe to the event, check out the forge doc about events
  18. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  19. Overwrite the initCapabilities methode in your Item class
  20. use this with an ItemStack Capability
  21. no nbt, you need an IArmorMaterial, look at the vanilla ArmorMaterial enum, also take a look at the ArmorItem
  22. your mod id should be in lower case. In addition, it should not contain any special characters like ', and use underscores for spaces
  23. does the features of your mod work? if not show your mod main class
  24. explain what you mean by "I cant see the Mod." are there any error on the log?
  25. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.