-
Posts
31 -
Joined
-
Last visited
Everything posted by 1BowTiesAreCool1
-
OnEXPCalc crashing minecraft when killed
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
And how do I do that? -
OnEXPCalc crashing minecraft when killed
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
How do I make it not null? -
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
Where do I insert it? -
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
I'm only in eight grade so there are no classes I can take -
[1.11.2] Error occurring when trying to create tool
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
None, I'm completely new -
[1.11.2] Error occurring when trying to create tool
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
I don't know... -
[1.11.2] Error occurring when trying to create tool
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
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
1BowTiesAreCool1 replied to 1BowTiesAreCool1's topic in Modder Support
It highlights it when I click the error icon -
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?
-
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); }