Started by
GenoFromEarthbound
on
Topic category: Help with Minecraft modding (Java Edition)
As title says, how can I do this? I am pretty new to Mcreator and java in general so I'd like to know.
Topic category: Help with Minecraft modding (Java Edition)
As title says, how can I do this? I am pretty new to Mcreator and java in general so I'd like to know.
if (MOUSE_PRESSED = 1) {
world.playSound((EntityPlayer)null, x, y, z,
(net.minecraft.util.SoundEvent)net.minecraft.util.SoundEvent.REGISTRY.getObject(
new ResourceLocation("testenvironmentmod:BeamSword")),
SoundCategory.NEUTRAL,(float)1,(float)1);
}
IT doesn't seem to recognize Mouse pressed....?
make the sword a item instead of a tool and then use the prosedure trigger "when mob hit with item" and then use the play sound block in the prosedures.
Also it should be == not =