Pikachu923
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by Pikachu923
-
I don't understand why this isn't working... Blockstate File: Can anyone help? Feel free to ask for other files.
-
The debugger in didn't help me. I might be doing something wrong though.
-
With Decimals, they are still just falling straight down
-
So update, The entities are actually spawning items of their blocks that respect their velocity. I'm rather confused.
-
The 10-20 was the change
-
I turned it up a lot because they're not moving at all. And they still don't move, just fall.
-
Bump...
-
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!
-
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.
-
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()))
-
What happened to the chunk.isLoaded() function? How can I check if a chunk is loaded in forge 1.14?
-
I'm so dumb. Thanks so much!
-
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:
-
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