Everything posted by Grookey
-
[1.16.5] Is there any way to block a Item of being used in the LeftHand?
Ok Thanks
-
[1.16.5] Is there any way to block a Item of being used in the LeftHand?
Is there any way to block a Item of being used in the LeftHand?
-
1.17.1 Ore generation is not working properly.
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)); } }
-
[SOLVED] Falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0;
Thank you
-
[SOLVED] Falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0;
When on playing on server the falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0; repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn
-
[1.17.1] Change Armor Model
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
-
[1.17.1] Change Armor Model
Is there any form of change the model of a custom armor?
-
[1.17.1] Add dependency mod to build gradle but it isn't appear when I open the game
Add API mod to build gradle but it isn't appear when I open the game code: https://github.com/Manueh333/WinxClub-Reborn
-
[SOLVED] [1.17.1] How to set the harvest level and the tool requiered for break a block
Thank you
-
[SOLVED] [1.17.1] How to set the harvest level and the tool requiered for break a block
How to set the harvest level and the tool requiered for break a block
-
[SOLVED] I have an error with a BlockEntity with energy
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
Sorry I will use the .gitignore I update the forge to the last version yesterday
-
[SOLVED] I have an error with a BlockEntity with energy
[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
-
[SOLVED] How to make a Sword Item unbreakable?
Ok i put zero durability and it works Thank you
-
[SOLVED] How to make a Sword Item unbreakable?
But when you create a Tier you need to set a durability
-
[SOLVED] How to make a Sword Item unbreakable?
How to make a Sword Item unbreakable?
-
[SOLVED] How to change the kill text?
Ok, Thanks
-
[SOLVED] How to change the kill text?
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"
-
[Solved] (1.16.5) Event won't fire
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?
It works perfect, Thank You
-
[SOLVED] How to create a MeshDefiniton of a json?
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?
ok, and how i can model on java?
-
[SOLVED] How to create a MeshDefiniton of a json?
I have a json model and I want to put the model on a ThrownItemProjectile
-
[SOLVED] My ThrowableItemProjectile have egg texture
Ok, ok, I get it working Thank You
-
[SOLVED] My ThrowableItemProjectile have egg texture
IPS spam blocked by CleanTalk.