-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
have you enabled the fall damage gamerule?
-
Hello, I'm currently using item property overrides to "indicate" an item animation and it worked well. But I realized it will be a problem that I'm adding more and more similar items which each of the item will need about 10 models... and that does not sound quite nice, especially every property actually shares the same model only with different display rotation or translation. Is ItemStackTileEntityRenderer what I'm looking for (do I even need it)? Or is there a more simple of doing it?
-
Since screen is client side only, changes done through the screen will only affect the client which server does not know anything from it (will not be saved), so you will need packets to tell the server what you've changed from client. And the reason for the works because you are making changes on server ( in tick() ), which it saves and knows what you've done.
-
How can you customize the hitbox and bounding box in Minecraft 1.15.2?
poopoodice replied to Help!'s topic in Modder Support
oh true, I said it because I can only find getBoundingBox() in 1.12, but apparently it isn't the right method anyways -
How can you customize the hitbox and bounding box in Minecraft 1.15.2?
poopoodice replied to Help!'s topic in Modder Support
It looks like you are using 1.12 or some version other than 1.15/1.16? Also you are unlikely overriding any of the method provided. with new AxisAlignedBB(0, 0, 0, 1, 0.625 * 8, 1); 0.625 * 8 > 1, which in 1.12 is not workable because it only (I believe) takes float between 0~1 (pixels/16) btw 1.12 is not supported anymore -
[1.15.2] How to create a screen with background and slots?
poopoodice replied to david072's topic in Modder Support
see how vanilla screens do them in drawGuiContainerBackgroundLayer() slots are in the container, and screen only shows what is in that container -
so it tells you your mob does not have the "maximum health" attribute which you will need to set them and Ash has a detailed walk through and explanation on this
-
can you post your code?
-
not so sure if "Windows 10 starter pack" is windows 10 version but
-
[SOLVED] Update block every tick (for grass-like spreading)
poopoodice replied to CommandCore's topic in Modder Support
use worldIn.getPendingBlockTicks().scheduleTick to tick -
How to summon glass break particles
poopoodice replied to Nicholas Hammond's topic in Modder Support
the explosion particle is not the explosion particle you are thinking 😛 you need to create an instance of BlockParticleData and pass it into the first arg -
does setDamage() work? and have you check what the itemstack got actually is
-
if (ctx.get().getSender() != null) { ... } CrudeTechMod.log("sender is null, side is " + (msg.fromServer?"Server":"Client")); if (this.world.isRemote) { GeneratorPacket.INSTANCE .sendToServer(new GeneratorPacket(this.energy.getEnergyStored(), this.burnTime, false, this.pos)); } INSTANCE.send(target, new GeneratorPacket(energy, burnTime, true, msg.pos));
-
from my brief research it seems like in 1.16: properties.func_235861_h_() which should be in 1.15: properties.requiresTool() this used to be in the Material in 1.15, but not on 1.16 anymore means you may need to put that into your block properties yourself
-
from my brief research it seems like in 1.16: properties.func_235861_h_() which should be in 1.15: properties.requiresTool() this used to be in the Material in 1.15, but not on 1.16 anymore means you may need to put that into your block properties yourself
-
[1.15] Is there a way to prevent the Hit Animation of an Item?
poopoodice replied to 4AAAA4BBBB's topic in Modder Support
I did not find a best solution either, but from a previous post someone mentioned when the attack speed reached a certain level the animation will not play.. or very played in a very short time. and it worked -
[1.15.2] Custom EntityArrow not rendering texture
poopoodice replied to xanderindalzone's topic in Modder Support
like what I've said if you look into arrow entity -
RenderingRegistry.registerEntityRenderingHandler in client setup
-
RenderingRegistry.registerEntityRenderingHandler in client setup This won't compile because it won't get called automatically...
-
[1.15.2] Custom EntityArrow not rendering texture
poopoodice replied to xanderindalzone's topic in Modder Support
Minecraft.getInstance().player.rotationPitch=Minecraft.getInstance().player.rotationPitch+recoil_pitch; Minecraft.getInstance().player.rotationYaw=Minecraft.getInstance().player.rotationYaw+recoil_yaw; if(!world.isRemote) { world.addEntity(bullet); this.AMMO--; worldIn.playSound(null, playerIn.getPosition(), GunSoundEvents.SOUND_shot_Colt1911, SoundCategory.PLAYERS, 1.0F, 1.0F); } these won't work Minecraft does not exist on servers and I assume these code are inside your item class, this.AMMO--; won't work either because there is only one item, and multiple itemstacks also if you look into arrow entity -
Is it not spawning or not being rendered?
-
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
poopoodice replied to Spyeedy's topic in Modder Support
try check for isSneaking instead of isCrouching because it seems like isCrouching is only being used by client -
so I ended up comparing them myself protected static boolean isOnSameTeam(PlayerEntity player, PlayerEntity player2) { return player.getTeam() != null && player.getWorldScoreboard().getTeam(player.getTeam().getName()).getMembershipCollection().contains(player2.getScoreboardName()); }
-
They should be the same as 1.15 shoot(double x, double y, double z, float velocity, float inaccuracy)