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. Constants.BlockFlags, in this class all BlockFlags are listed with an explanation
  2. you can use World#getEntitiesOfClass and use as class ItemEntiy, and create AxisAlignedBB with size 1 or you check out the methods fallOn and stepOn in your block class, fallOn is fired if an Entity fall on the Block (include ItemEntity), and stepOn is fired every tick an entity stand on the block (also inclue ItemEntity).
  3. if i read the log correct the mod "pneumaticcraft" is not create for server or it was not tested properly on the server talk with the author of the mod
  4. should work... show the complete class Edit: Do you use DeferredRegister to register your items? if yes add .get() behind ModItems.SNG_INGOT
  5. i had this error some time ago, unfortunately i can't tell you exactly how i solved the problem. i tried a few gradle tasks and re-imported the project, that fixed the problem for me
  6. the method is now called "use"
  7. first this is not your thread, create next time your own itself it would work, you then only give the player the effect for the next tick, if you then use the night vision potion for example, the view is very strange because the potion kind of fades away and you do not have the achieved effect, test it out and you will see whats happen At the LivingEquipmentChangeEvent you give the player an infinite effect, and you remove it if the player takes the item from the armor slot that would be the most plausible explanation for me, correct me if something is wrong😀
  8. if I see that correctly you are trying to overwrite the armor item, if you want to add the damage there then you should use the entityHurt method but keep in mind you have to overwrite all ArmorItems An easier way would be if you use the LivingDamageEvent, check whether the attacker (DamageSource # getEntity) is holding an ArmorItem and then set the new damage check out the event for more info on how it works or when it is fired
  9. So I think you should use the event because if you overwrite getShape in the block class you can no longer interact with it
  10. no, you have to overwrite the method in your Block class
  11. BlockState -> yes, ServerWorld -> yes, BlockPos -> No, TileEntity (Nullable) -> yes check the parameters that you have specified
  12. use the static method Block#getDrops, which requires a BlockState, a world, a position and a TileEntity (nullable)
  13. There are different methods in the block class that return a VoxelShape (getInteractionShape, getCollisionShape, getRenderShape, getShape, ...). you should use getRenderShape but I'm not sure (test)
  14. so why do you not use Block#getDrops?
  15. solution for the world is you can get it from Minecraft (Minecraft#getInstance().level) your event should work, I cannot reproduce your error after trying something 😅
  16. I'm not sure, but I think you need to include your Mod ID here would be useful but shouldn't be the problem And I have no idea where you can get the world for it, because you only get a BlockRayTraceResult from the event and this does not contain a world Edit: you can get a ClientWorld from the WorldRenderer so you can use World#getBlockState to check whether the block at that point is your block
  17. looks good. is the event called? how do you register the event listener
  18. add requiresCorrectToolForDrops this fix your problem Edit: if the question is related to the blockdrop
  19. show your code of your container it could be that you do not synchronize the inventory of the container between server and client
  20. look at the event (java doc)
  21. Use EntityEvent.Size
  22. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  23. update: I also solved the problem with the caves, but I still have no idea what I'm doing wrong with the BiomeLoadingEvent
  24. small update: after testing a bit, I found that the mineshaft generation is dependent on the SeaLevel (mineshafts generate below the SeaLevel), I fixed my problem by setting the SeaLevel to the maximum height of the dimension

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.