Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Luis_ST

Members
  • Joined

  • Last visited

Everything posted by Luis_ST

  1. do you mean GuiScreenEvent.PotionShiftEvent?
  2. use PlayerEntity#getCapability use CapabilityItemHandler#ITEM_HANDLER_CAPABILITY and null as parameter then use orElseThrow to get an IItemHandler use a for loop to loop through the slot san check if they contains your item if it dosen't contain your item add it to the IItemHandler
  3. this questions has already be answered in this thread
  4. did you call the register method in deferredregister in your Mod class constructor? did you tried setupBiome without event.enqueueWork? json biomes are registered via the RegistryKey (this will done automatically and: https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html
  5. first of all this is cheating, and we don't support mods that allows the Player to cheat second which version did you use because GlStateManager.disableDepth does not exist in new versions
  6. for an example look into the BlockBehaviour.Properties class, there is a default implementation with return 0
  7. post full log please, but i think your Biome is not registered with an ID, because the vanilla Biome IDs end with 173 so 174 is a modded biome Note: if you using the vanilla biome layer system it can lead problems if two mods are register a biome with the same id
  8. but tags are file based, or can we edit them on runtime? iirc the file tag is final
  9. harvestTool is now set in json which i had explained in this thread harvestLevel is also set via json but it's a bit more complicated, you need to create a custom block tag and add your block to this tag if you create an ItemTier wich can mine the block you should return the tag in the ItemTier (take look at the ForgeTier and at the TierSortingRegistry class), for tags look into the vanilla Tags classes
  10. use pastebin, gist.github or upload the file here
  11. this is the forge Community Wiki: https://forge.gemwire.uk/wiki/Main_Page and this is the official doc: https://mcforge.readthedocs.io/en/latest/
  12. https://mcforge.readthedocs.io/en/latest/concepts/sides/ https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ should be clear if you know basic java (superclass methods form java.lang.Object and OOP)
  13. write into a file at runtime which is generate by vanilla is a good idea?
  14. its strength, you can use the forge bot on discord to convert the mapping names (mcp -> moj & moj -> mcp)
  15. the full log and not as a screenshot please
  16. use a config, note that you can not read/write a block directly from/into the config, you should use the registry name
  17. first of all, inventory modifications are server side, so test if the Player you get from the event is a ServerPlayerEntity next player.inventory is client side you should use the Capability IItemHandler (CapabilityItemHandler#ITEM_HANDLER_CAPABILITY) in addition you can't check if the player inventory contains an ItemStack because ItemStack doesn't overwrite the equals method, you only can do this with items (then you can use ==)
  18. show your updated code and what exactly now your problem
  19. Show what you tried
  20. what do you want to achieve do you know basic java?
  21. create your own thread and 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  22. should normally work but you can try to stitch the texture in TextureStitchEvent.Pre
  23. where is your texture located
  24. the first parameter (ItemStack) is the item which is move the second parameter (int) is the min slot id where the item can move to the third parameter (int) is the max slot is where the item can move to and no idea what the boolean parameter does
  25. PlayerEntity the for loop is an infinite loop, beacuse an Float can be 0.04578F and an Integer can only be 0 so 0.04578F != 0 is always true use > or >= or < or <= for the condition

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.