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.

poopoodice

Members
  • Joined

Everything posted by poopoodice

  1. He's asking which playSound(...) in which world (client/server) you are using, there are multiple of them.
  2. Minecraft.getInstance().player.sendChatMessage("Block Placed with CHARGE: " + (Integer)blockState.get(CHARGE)); This will crash on server https://mcforge.readthedocs.io/en/latest/concepts/sides/, use the player provided instead. You need to show more of your code
  3. For me your link is not working.
  4. You are applying a new modifier every tick, you should create a static final modifier, then apply/remove it to the player if the player has the modifier.
  5. You should probably apply modifiers on attributes instead of directly modify their base values.. but I'm not sure if there's anything to do with this.
  6. Mod id can not be capitalized. LivingJumpEvent is triggered whenever a living entity jump, and that includes livings like sheep, chickens, zombies..etc. the default bus of annotation @Mod.EventBusSubscriber is forge already, and it should not be done only on client side.
  7. That's actually a false as public void encode(DataTransferInterfaceMessage msg, PacketBuffer buffer) { buffer.writeVarIntArray(new int[]{territory, xCoord, yCoord, zCoord}); } public DataTransferInterfaceMessage decode(PacketBuffer buffer) { int[] array = buffer.readVarIntArray(); if(array.length!=4) return new DataTransferInterfaceMessage(0,0,80,0); return new DataTransferInterfaceMessage(array[0], array[1], array[2], array[3]); } they does not reference any data outside the method, hence they can be static These data should be gained from the msg
  8. you can create multiple pools, for every item you want to drop
  9. You need to send a packet to the server and do the teleport there.
  10. 1.7.10 is no longer supported
  11. Good to know, thanks for the reply
  12. Hello, as title, is it possible to generate items based on json created by users, and is it a good idea to do it? Thanks.
  13. These are not supposed to exist in your block class, at least not how like how you use it here. You forgot to add the new state to the state container.
  14. I don't think you can as potion effects handling are done in many places, unless you want to simulate all of them. Override onItemUseFinish and return the stack you want to give to the player, check SoupItem or PotionItem
  15. in 1.16 there's an event called RegisterCommandEvent for you to register all your commands. To create (further processes) a command you can see how vanilla does it, there are quite a lot of them.
  16. He's pretty much telling you to learn from this one instead of the one you were using.
  17. You're right it needs to be above it, apparently I have them mixed up
  18. Licence can't be located above modid
  19. The github link isn't working (at least for me), and it will help a lot if you can also post the crash log.

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.