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.

Davidthemodder

Members
  • Joined

  • Last visited

Everything posted by Davidthemodder

  1. How can I do something with it? Like how can I run Code when this key is pressed?
  2. i couldnt get in my dimension in the game
  3. maybe its not mapped.
  4. i wanted to create a custom dimension but i dont know how to register the jsons.
  5. i want to throw 2 items of my mod on my custom block and they make 1 new item
  6. Or with the LivingTickEvent: @SubscribeEvent public static void onJump(TickEvent.PlayerTickEvent event){ if (event.player.world.getBlockState(event.player.getPosition().add(0, -1, 0)) == Blocks.AIR.getDefaultState()){ event.player.world.setBlockState(event.player.getPosition().add(0, -1, 0), Blocks.COBBLESTONE.getDefaultState()); } }
  7. You can do this by the Event: LivingEntity.LivingJumpEvent Example: @SubscribeEvent public static void onJump(LivingEvent.LivingJumpEvent event) { LivingEntity player = event.getEntityLiving(); World world = player.getEntityWorld(); world.setBlockState(player.getPosition().add(0, 0, 0), YOUR_BLOCK.get().getDefaultState()); } and it has to be in a class where you make your Events. For this put this just above your class: @Mod.EventBusSubscriber(modid = your_mod_id, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) EDIT:if you want to have cobblestone replace YOUR_BLOCK with Blocks.COBBLESTONE and your_mod_ id with "Scaffold"
  8. i dont want to make a hopper. i already looked at this post
  9. i try to make a block craft two items together if they are on top of the block. Any help?

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.