Jump to content

Davidthemodder

Members
  • Posts

    46
  • 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. EDIT:sorry i confounded two things.
  3. i couldnt get in my dimension in the game
  4. i dont find the worldgenregistries
  5. maybe its not mapped.
  6. i wanted to create a custom dimension but i dont know how to register the jsons.
  7. I found another solution. Still thanks!
  8. and how do i check if the block is there?
  9. what do i do with it and how do i use it?
  10. i want to throw 2 items of my mod on my custom block and they make 1 new item
  11. 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()); } }
  12. 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"
  13. i dont want to make a hopper. i already looked at this post
  14. i try to make a block craft two items together if they are on top of the block. Any help?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.