Everything posted by 1BowTiesAreCool1
-
OnEXPCalc crashing minecraft when killed
And how do I do that?
-
OnEXPCalc crashing minecraft when killed
How do I make it not null?
-
OnEXPCalc crashing minecraft when killed
I tried to make it so that my treasure sword drops more exp than normal. The exp part works but when I die minecraft crashes. Code that gives errors @SubscribeEvent public void onEXPCalc (LivingExperienceDropEvent event) { if (event.getAttackingPlayer().getHeldItemMainhand().getItem() == ItemInit.SWORD_TREASURE) { event.setDroppedExperience(1000); } } crash report crashreport1.txt
-
[1.11.2] How to add ladder-climbing to mob A.I
Where do I insert it?
-
[1.11.2] How to add ladder-climbing to mob A.I
I'm trying to figure out how to make zombies pathfind ladders, I've already made it so they can go up ladders, they're just not walking toward the ladders. Please help.
-
[1.11.2] Error occurring when trying to create tool
My school can't do anything, so that's a downside. And I haven't heard about any kind of summer programs in my town, only summer school, which doesn't offer any programming as far as I know. I also begin in gymnasium(the swedish version of high school) in tenth grade. I'd love to learn it now and not wait until gymnasium.
-
[1.11.2] Error occurring when trying to create tool
I'm only in eight grade so there are no classes I can take
-
[1.11.2] Error occurring when trying to create tool
package bowtiesarecool.coulored_lights.init; import bowtiesarecool.coulored_lights.items.ItemStrangeDust; import bowtiesarecool.coulored_lights.items.ItemStrangeTool; import bowtiesarecool.coulored_lights.items.ItemWork; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item work; public static Item strange_dust; public static Item strange_tool; public static void Init(){ work = new ItemWork(); strange_dust = new ItemStrangeDust(); strange_tool = new ItemStrangeTool(); } public static void register() { GameRegistry.register(work); GameRegistry.register(strange_dust); GameRegistry.register(strange_tool); } public static void registerRenders() { registerRender(work); registerRender(strange_dust); registerRender(strange_tool); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } The error occurs in strange_tool = new ItemStrangeTool();
-
[1.11.2] Error occurring when trying to create tool
The error switches sources between ModItems(my class for the initialization of items) and ItemStrangeTool
-
[1.11.2] Error occurring when trying to create tool
None, I'm completely new
-
[1.11.2] Error occurring when trying to create tool
I don't know...
-
[1.11.2] Error occurring when trying to create tool
But it doesn't, I had the same problem with another item and solved it, but I don't remember how
-
[1.11.2] Error occurring when trying to create tool
It highlights it when I click the error icon
-
[1.11.2] Error occurring when trying to create tool
Implicit super constructor ItemTool() is undefined for default constructor. Must define an explicit constructor This error pops up in this code: public class ItemStrangeTool extends ItemTool { protected ItemStrangeTool(float attackDamageIn, float attackSpeedIn, ToolMaterial materialIn, Set<Block> effectiveBlocksIn) { super(attackDamageIn, attackSpeedIn, materialIn, effectiveBlocksIn); } } How do I fix this?
- [1.11.2] How to add simple biomes
-
[1.11.2]How to change block slipperiness and bounciness.
That worked! Thanks!
-
[1.11.2]How to change block slipperiness and bounciness.
public void onFallenUpon(World worldIn, BlockPos pos, Entity entityIn, float fallDistance) { if (entityIn.isSneaking()) { super.onFallenUpon(worldIn, pos, entityIn, fallDistance); } else { entityIn.fall(fallDistance, 0.0F); } } public void onLanded(World worldIn, Entity entityIn) { if (entityIn.isSneaking()) { super.onLanded(worldIn, entityIn); } else if (entityIn.motionY < 0.0D) { entityIn.motionY = -entityIn.motionY * 1; if (!(entityIn instanceof EntityLivingBase)) { entityIn.motionY *= 0.0D; } } } public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn) { if (Math.abs(entityIn.motionY) < 0.1D && !entityIn.isSneaking()) { double d0 = 0.4D + Math.abs(entityIn.motionY) * 0.2D; entityIn.motionX *= d0; entityIn.motionZ *= d0; } super.onEntityWalk(worldIn, pos, entityIn); }
-
[1.11.2]How to change block slipperiness and bounciness.
But I have one more problem, I bounce when I'm standing still atop the block, is there anyway I can prevent this?
-
[1.11.2]How to change block slipperiness and bounciness.
Oh wait, I think it works now!! Thanks alot!
-
[1.11.2]How to change block slipperiness and bounciness.
I did that but nothing special happened..
-
[1.11.2]How to change block slipperiness and bounciness.
Wait, where in the code should I insert it?
-
[1.11.2]How to change block slipperiness and bounciness.
Ok
-
[1.11.2]How to change block slipperiness and bounciness.
Ehhh, how do I do that?
-
[1.11.2]How to change block slipperiness and bounciness.
Yeah, but here's the problem, I've tried changing the value but it doesn't seem to affect the bouncing at all
-
[1.11.2]How to change block slipperiness and bounciness.
public void onLanded(World worldIn, Entity entityIn) { if (entityIn.isSneaking()) { super.onLanded(worldIn, entityIn); } else if (entityIn.motionY < 0.0D) { entityIn.motionY = -entityIn.motionY; if (!(entityIn instanceof EntityLivingBase)) { entityIn.motionY *= 0.9D; } } } The last value
IPS spam blocked by CleanTalk.