Everything posted by poopoodice
-
onEntityWalk not working
have you enabled the fall damage gamerule?
-
Modifying Item model through code
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?
-
[1.15] Changes to player and to tile entity from screen gui not saving.
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?
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?
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?
see how vanilla screens do them in drawGuiContainerBackgroundLayer() slots are in the container, and screen only shows what is in that container
-
Entity fails to summon
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
-
Entity fails to summon
can you post your code?
-
HELP can't find launcher
not so sure if "Windows 10 starter pack" is windows 10 version but
-
[SOLVED] Update block every tick (for grass-like spreading)
use worldIn.getPendingBlockTicks().scheduleTick to tick
-
How to summon glass break particles
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
-
[1.16] Damage custom item
does setDamage() work? and have you check what the itemstack got actually is
-
[1.15.2] How to make it save the energy
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));
-
[1.16.1] Block Property not Working
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.16.1] Block Property not Working
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?
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] How can I get Information of the bow-itemstack from the arrow-entity?
yeah the arrow is added to the world afterwards
-
[1.15.2] Custom EntityArrow not rendering texture
like what I've said if you look into arrow entity
-
How to create custom entities?
RenderingRegistry.registerEntityRenderingHandler in client setup
-
How to create custom entities?
RenderingRegistry.registerEntityRenderingHandler in client setup This won't compile because it won't get called automatically...
-
[1.15.2] Custom EntityArrow not rendering texture
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
-
Issues with my projectile
Is it not spawning or not being rendered?
-
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
try check for isSneaking instead of isCrouching because it seems like isCrouching is only being used by client
-
Get player's team on 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()); }
-
Entity.shoot in 1.16.1
They should be the same as 1.15 shoot(double x, double y, double z, float velocity, float inaccuracy)
IPS spam blocked by CleanTalk.