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.

vemerion

Members
  • Joined

  • Last visited

Everything posted by vemerion

  1. I think the easiest way to learn about commands is to look at the vanilla commands. Commands.java is probably a good place to start.
  2. You can use RegisterGuiOverlaysEvent to draw text on the screen.
  3. They will only spawn on grass blocks because of the ANIMALS_SPAWNABLE_ON block tag. So if your biome does not have grass blocks then they won't spawn. Could this be the problem?
  4. Is it a screen from your own mod or do you want to modify an already existing screen?
  5. I think something like this should work: var effect = new MobEffectInstance(ModEffects.BLINDNESS.get(),1,1); effect.setCurativeItems(List.of()); pEntity.addEffect(effect);
  6. Yes, 'RenderWorldLastEvent' should work (although it is called 'RenderLevelLastEvent' in 1.19 and was replaced by 'RenderLevelStageEvent' in 1.20 so I wonder what version you are porting to 🤔). Mostly it is just important to get the parameters right, but there might be some RenderSystem stuff that should be set before. You can look in the vanilla source code what they do when calling renderVoxelShape().
  7. You can use LevelRenderer.renderVoxelShape()
  8. You should follow the approach described here and then when a key press is detected you need to call 'use()' and also send a packet to the server to make sure the server also calls 'use()'.
  9. You should remove this to avoid reaching across logical sides. You can instead access the player via 'event.player'. As for your questions, I am not sure what you want to detect. But you can use the 'isOnGround()' method to check if an entity is currently on the ground or not.
  10. I think the standard approach is to create an invisible block which gives off light, and then automatically place that block down where they entity is.
  11. It looks like you are not calling this.addDataSlot(this.cost); in the last of the NetheriteAnvilMenu constructors.
  12. I think the full log is needed track down what the problem is. You can use pastebin for example to upload the log.
  13. If you could post the full log in pastebin or similar that would be great 🙂
  14. Can't you instead use one of the blocks in the Blocks class (such as Blocks.AIR) to do the measurements?
  15. Probably not a sure-fire way, but you could check if the entity is an instance of 'Enemy', or check if the entity type has the mob category 'MONSTER'.
  16. This question came up recent in another post, I think you can find the answer there:
  17. Sure! You need to create your own BlockEntityRenderer and render the item, and then register the BlockEntityRenderer to your block in the EntityRenderersEvent.RegisterRenderers event
  18. Yes, I would say a custom network message is the best way to do this (at least to my knowledge)
  19. The registry name should be all lowercase, so "item" and not "Item"!
  20. I think specifying "render_type": "minecraft:cutout" in the model json should fix the issues!
  21. No problem, glad to be of help
  22. Looks like you need to specify "gui_light": "front" outside of the "base" object.

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.