
Grookey
Members-
Posts
60 -
Joined
Everything posted by Grookey
-
[1.16.5] Is there any way to block a Item of being used in the LeftHand?
Grookey replied to Grookey's topic in Modder Support
Ok Thanks -
1.17.1 Ore generation is not working properly.
Grookey replied to Gianka1485's topic in Modder Support
To use the max and min height you need to change the VerticalAnchor you have set VerticalAnchor.aboveBottom and VerticalAnchor.belowTop, if you change it to VerticalAnchor.absolute it should work public class OreGeneration { public OreGeneration() { } public static void generateOres(final BiomeLoadingEvent event) { if (!event.getCategory().equals(Biome.BiomeCategory.NETHER) && !event.getCategory().equals(Biome.BiomeCategory.THEEND)) { exampleOreGenerate(event.getGeneration(), Predicates.NATURAL_STONE, ((Block) ExampleBlocks.EXAMPLE_ORE.get()).defaultBlockState(), (Integer) ExampleConfig.EXAMPLE_ORE_SIZE.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MIN_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MAX_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_AMOUNT.get()); } } private static void exampleOreGenerate(BiomeGenerationSettingsBuilder settings, RuleTest fillerType, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { settings.addFeature(Decoration.UNDERGROUND_ORES, (ConfiguredFeature)((ConfiguredFeature)((ConfiguredFeature) Feature.ORE.configured(new OreConfiguration(fillerType, state, veinSize)).rangeUniform(VerticalAnchor.absolute(minHeight), VerticalAnchor.absolute(maxHeight))).squared()).count(amount)); } } -
I tried to see the code of the model of Elytra and I get a way to create a custom model for the armor but I didnt know how to register anyone can help pls? repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn Item: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsItem.java layer: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsLayer.java
-
Is there any form of change the model of a custom armor?
-
[SOLVED] I have an error with a BlockEntity with energy
Grookey replied to Grookey's topic in Modder Support
Ok i solved the problem of the block entity i forgot to create a Screen for the container thank you -
[SOLVED] I have an error with a BlockEntity with energy
Grookey replied to Grookey's topic in Modder Support
Sorry I will use the .gitignore I update the forge to the last version yesterday -
[13:11:17] [Render thread/WARN]: Failed to create screen for menu type: winxclubreborn:magic_generator_container git repo: https://github.com/Manueh333/WinxClub-Reborn
-
Ok i put zero durability and it works Thank you
-
But when you create a Tier you need to set a durability
-
How to make a Sword Item unbreakable?
-
Ok, Thanks
-
Ok so I have a ThrowItemProjectile and I make it onhitEntity to make damage. when i kill a player with this projectile it say death.attack.wolf_claw so I tried to put in languague files but the kill message was the word i put in languague I need to know how to make the message look like "Victim was killed by Shooter"
-
package bowtruckle.mods.gods.data; import bowtruckle.mods.gods.tools.Settings; import bowtruckle.mods.gods.tools.Vector3; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.AttachCapabilitiesEvent; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import bowtruckle.mods.gods.tools.Settings; @Mod.EventBusSubscriber(modid = Settings.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class PlayerInfoEventHandler { @SubscribeEvent public static void attachCapability(AttachCapabilitiesEvent<Entity> e) { if(e.getObject() instanceof PlayerEntity) { PlayerInfoProvider provider = new PlayerInfoProvider(); e.addCapability(new ResourceLocation(Settings.MODID,"lastPos"), provider); e.addListener(provider::invalidate); } } @SubscribeEvent public static void onPlayerMove(TickEvent.PlayerTickEvent e) { System.out.println("event called"); if(e.getPhase().equals(TickEvent.Phase.END)) { System.out.println("Event Phase End"); e.player.getCapability(CapabilityPlayerInfo.PLAYER_INFO_CAPABILITY).ifPresent(information -> { Vector3 pos = new Vector3(e.player.getPosX(), e.player.getPosY(), e.player.getPosZ()); if (pos == information.getLastPos()) { e.player.setInvisible(true); }else{ e.player.setInvisible(false); } System.out.println(information.getLastPos()); }); } } } Try using this code and remove the register of FMLCommonSetupEvent
-
[SOLVED] How to create a MeshDefiniton of a json?
Grookey replied to Grookey's topic in Modder Support
It works perfect, Thank You -
[SOLVED] How to create a MeshDefiniton of a json?
Grookey replied to Grookey's topic in Modder Support
I have two errors on CubeListBuilder.create().addBox() code: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/models/HitOfNatureModel.java#L32-L33 -
[SOLVED] How to create a MeshDefiniton of a json?
Grookey replied to Grookey's topic in Modder Support
ok, and how i can model on java? -
I have a json model and I want to put the model on a ThrownItemProjectile
-
[SOLVED] My ThrowableItemProjectile have egg texture
Grookey replied to Grookey's topic in Modder Support
Ok, ok, I get it working Thank You -
[SOLVED] My ThrowableItemProjectile have egg texture
Grookey replied to Grookey's topic in Modder Support