-
Posts
642 -
Joined
-
Last visited
Everything posted by TheRPGAdventurer
-
Ok, I once found a minecraft 1.8 mod that makes a 3d model for you, I know that 1.8 isn't longer supported here but that jar file's exported .java still works for older versions, I usually use 3d model makers like these to visualize my model and help with the textures. To use it, you just need to install just like a regular .jar file mod and run minecraft.
-
personally, I just use techne to visualize my model but I actually write the model itself.
-
How does entity's hitbox and block's hitbox interact
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
Ok it worked, now I need to detect if it is liquid, lava is Liquid right? -
How does entity's hitbox and block's hitbox interact
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
I am trying to make a BlockPos custom method for a flying algorithim to my tameable dragon to detect it's altitude. I currently use world#getHeight but that causes issues because gethHeight finds the most uppermost solid block in the world, but the nether has a solid block roof above. I need a custom method which detects a solid block below and to do that I must understand how solid blocks interact with entities -
[SOLVED][1.11.2] Making a Double Plant (2 Block High Flower)
TheRPGAdventurer replied to ModMCdl's topic in Modder Support
Also as a suggestion, kindly please edit your first post to change the title so you can have a some sort of mark that this has been solved, like (SOLVED) or [SOLVED] so people have this same problem can tell if this is solved THANKS! -
Hi Everyone I used world#getHeight() to check wheter my entity is onGround or airbourne but the getHeight() method just gets The heighest block and It made problems with the nether because of it's rooftops which is it's heighest point. entity#onGround can be useful but it is just a boolean not a method. I really need something that checks the ground below. thanks for any help.
-
The problem is that when I liftoff and there is a block above like in the nether, it would just try to reach that height because the getHeight() method finds the highest possible solid block but then gets blocked by the blocks solidity. I changed my code btw to fit in with integers. public double getAltitude() { int blockX = (int) (posX - 0.5); int blockZ = (int) (posZ - 0.5); return posY - world.getHeight(blockX, blockZ); }
-
Do you know something that goes with a BlockPos? I need that because when i make my dragon fly by pressing space, it needs an altitude in order to lift off. When I fly it in a place and there is a Block above like the nether, it just jumps upward without liftoff trying to get the heighest height possible then the minecraft:block above blocks it. /** * Returns the distance to the ground while the entity is flying. */ public double getAltitude() { BlockPos groundPos = world.getHeight(getPosition()); return posY - groundPos.getY(); }
-
So I tried to make my structure look for air blocks, then spawn it in there. My suspicion with my problem is that air blocks with the requirements are rare thus making it stack on each other. Other people doesn't seem to have this problem tho. I always see that the issue is on the Y level. public static void generateNestUnderground(World world, Random random, int x, int z) { int xzCheckDistance = 10; if((random.nextInt(125)) == 1) { for (int y = 55; y >= 30; y--) { if (world.getBlockState(new BlockPos(x,y,z)).getBlock().isAir(world.getBlockState(new BlockPos(x,y,z)), world, new BlockPos(x,y,z))) { for (int y2 = 1; y2 <= 30; y2++) { if (world.getBlockState(new BlockPos(x,y-y2,z)).isBlockNormalCube()) { int y4 = 0; int y5 = 0; for (int x2 = 0; x2 <= xzCheckDistance; x2++) { if (world.getBlockState(new BlockPos(x-x2,y-y2+y4 +1,z)).isBlockNormalCube()) { Boolean wall = true; for (int y3 = 1; y3 <= 4; y3++) { if (!world.getBlockState(new BlockPos(x-x2,y-y2+y4+1+y3,z)).isNormalCube()) { wall = false; y4 += y3; break; } } if (wall) { if (world.getBlockState(new BlockPos(x - x2, y - y2 + y4, z)).isNormalCube()) { StructureDragonNests.generate(world, new BlockPos(x - x2, y - y2 + y4, z), random); Utils.getLogger().info("Underground Nest here at:" + new BlockPos(x - x2, y - y2 + y4, z)); }return; } } } break; } } } } } } }
-
How to spawn structures in the nether(screenshots)
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
Also, how do I make my code give me the exact location of the structure instead of saying "Nest here at true" in the console. Utils.getLogger().info("Nest here at: " + dragonNestNether.generate(world, random, new BlockPos(x,y,z)));