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.

Pikachu923

Members
  • Joined

  • Last visited

  1. I don't understand why this isn't working... Blockstate File: Can anyone help? Feel free to ask for other files.
  2. The debugger in didn't help me. I might be doing something wrong though.
  3. With Decimals, they are still just falling straight down
  4. So update, The entities are actually spawning items of their blocks that respect their velocity. I'm rather confused.
  5. The 10-20 was the change
  6. I turned it up a lot because they're not moving at all. And they still don't move, just fall.
  7. I don't understand why this isn't working. No matter what I do, the blocks always fall strait down. public void execute(Chunk chunk, int topIn){ World world = chunk.getWorld(); if(world.isRemote) return; Random rand = new Random(); int x = (chunk.getPos().getXEnd() - chunk.getPos().getXStart())/2 + chunk.getPos().getXStart(); int z = (chunk.getPos().getZEnd() - chunk.getPos().getZStart())/2 + chunk.getPos().getZStart(); BlockPos top = new BlockPos(x,topIn,z); for(MutableBlockPos pos : BlockPos.getAllInBoxMutable(top.add(-3, -3, -3), top.add(3, 3, 3))){ EntityFallingBlock entity = new EntityFallingBlock(world, pos.getX(), pos.getY()+2, pos.getZ(), Blocks.STONE.getDefaultState()); if(rand.nextInt(100)+1 < 20){ world.spawnEntity(entity); entity.fallTime = 1; entity.addVelocity(range(rand,10,20), range(rand,10,20), range(rand,10,20)); } } } private int range(Random rand, int min, int max){ return rand.nextInt((max - min) + 1) + min; } Any help is appreciated, Thanks!
  8. I want to know if a player is around the chunk. That's why I was trying to see if the chunk was unloaded, so that I know a player isn't nearby anymore.
  9. I just need to know if a chunk is loaded. I used this as a workaround for now, but it is deprecated. world.isAreaLoaded(new BlockPos(chunk.getPos().getXStart(),70,chunk.getPos().getZStart()), new BlockPos(chunk.getPos().getXEnd(),70,chunk.getPos().getZEnd()))
  10. What happened to the chunk.isLoaded() function? How can I check if a chunk is loaded in forge 1.14?
  11. I'm so dumb. Thanks so much!
  12. I can't launch Forge 1.10.2-12.18.3.2511. I keep getting a java.lang.InvocationTargetExceotion. I am running on Ubuntu 18.04 LTS 64bit, with Java 1.8.0_171-b11, giving the server 10GB of RAM (I have 64GB, I don't think that's a problem) Terminal Output:
  13. Please help me, I don't know what I did wrong. I am trying to make the item take durability damage on crafting in minecraft 1.7.10. (P.S I am new to modding) Thanks in advanced

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.