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.

ChampionAsh5357

Members
  • Joined

  • Last visited

Everything posted by ChampionAsh5357

  1. You can't simply fake a block render by changing the render mechanism, especially for block entities. Additionally, as you are desyncing the values on the server, the server is, rightfully, telling the client that the value is incorrect and to place the correct block there.
  2. Without trickery, no. There was a PR about a year ago, but it eventually went stale and closed.
  3. What version of Minecraft is this for? And please show the relevant code.
  4. The purpose of AnvilUpdateEvent is for when you would like to add an output between two items, not a general usecase. There is no event that exists which specifies the maximum amount of levels an anvil will take from the player unless you determine the output manually for every item and mod item.
  5. Please provide the entire debug.log in the logs folder within the game directory via a gist or pastebin.
  6. You are playing an supported version, but I will mention that the JRE used is not up to date. Otherwise, The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  7. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  8. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  9. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  10. That's terribly inefficient. The better way to do it would be to loop through the surrounding blocks, starting with those closest, and find the block you want, only then checking whether the raytrace hits the wanted block. You can actually do some easy optimizations there since you just need to stop looking through any blocks that aren't air. However, if you already have the block position, then it makes no sense to do the ray trace since you already know where the block is. You would be better off trying to figure out how to represent the data.
  11. Well, you're creating an instance of an object. So, what would you replace in the code above that achieves the same outcome of creating an instance of an object?
  12. No, look at how MobEffect handles instant health and damage. That should give you a good idea on how to structure your code.
  13. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  14. We are not Fabric; ask wherever they provide support.
  15. Yep, probably ClientTickEvent See how MusicManager works since this is essentially what you are trying to design.
  16. Unfortunately, there's no easy method to do this. However, your logic would indicate that it's impossible for the sound to loop as it assumes the custom sound is play for as long as the player is in the nether. You are better to check whether the SoundManager finds the current sound instance active (via SoundManager#isActive). You will need to hold a current instance of the SoundInstance being played.
  17. Your version of Forge is too old. The class mentioned was added in 43.1.8, while your version is 43.1.2. Update Forge.
  18. First, #applyInstantenousEffect is only called in certain cases, hence the logic needs to be in both methods. Second, your logic makes absolutely no sense because you're check if the instance is on the server, then immediately checking if the client instance is not null, which is bad sided logic. You check the side and send the information on that side, meaning only the server. Additionally, you don't even need to check the side since the logic will only be called on the server in most cases, besides from maybe the particle.
  19. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  20. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  21. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).
  22. Are you trying to attach the capability to the item stack or the entity? If the ItemStack, then you would use the method you are currently showing with the method within the event itself (event#addCapability)
  23. But you know the block position of the block you want to look at correct? Then why would it matter if there is another block in the way?
  24. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).

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.