-
Posts
7 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
pixelcaft's Achievements

Tree Puncher (2/8)
0
Reputation
-
This is the first time i work with this with java and IDE but i think i will learn more of java and come back later on this topic thank you for helping me
-
I'm Sorry but i dont understand where you can find the ArmorItem's contrcutor or how its need to implementation the only thing i did was made a new file with this futher i cant go beacuse i dont knwo what to do sorry. package net.ryan.stonesoldiermod.item.custom; import com.google.common.collect.Multimap; import net.minecraft.world.entity.ai.attributes.AttributeModifier; import net.minecraft.world.item.ArmorItem; public class ArmorHealth extends ModArmorItem { @Override }
-
I want a Attribute for my armor. that if your put a helmet than your max HEALT go up by two hearts but how do i do that i know i need to work with attributs but how dus the folder/files structure work and what your need to type. i am new in this and i cant find a forum that i understand here is my code for the items package net.ryan.stonesoldiermod.item; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.item.*; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.RegistryObject; import net.ryan.stonesoldiermod.item.custom.ModArmorItem; import net.ryan.stonesoldiermod.stonesoldierMod; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class ModItems { public static final DeferredRegister<Item> Items = DeferredRegister.create(ForgeRegistries.ITEMS, stonesoldierMod.MOD_ID); // ---HEMONITE--- public static final RegistryObject<Item> HEMONITE_HELMET = Items.register("hemonite_helmet", () -> new ModArmorItem(ModArmorMaterials.HEMONITE, EquipmentSlot.HEAD, new Item.Properties().tab(ModCreativeModeTab.StoneSoldier_TAB).stacksTo(1))); public static final RegistryObject<Item> HEMONITE_CHESTPLATE = Items.register("hemonite_chestplate", () -> new ArmorItem(ModArmorMaterials.HEMONITE, EquipmentSlot.CHEST, new Item.Properties().tab(ModCreativeModeTab.StoneSoldier_TAB).stacksTo(1))); public static final RegistryObject<Item> HEMONITE_LEGGING = Items.register("hemonite_legging", () -> new ArmorItem(ModArmorMaterials.HEMONITE, EquipmentSlot.LEGS, new Item.Properties().tab(ModCreativeModeTab.StoneSoldier_TAB).stacksTo(1))); public static final RegistryObject<Item> HEMONITE_BOOTS = Items.register("hemonite_boots", () -> new ArmorItem(ModArmorMaterials.HEMONITE, EquipmentSlot.FEET, new Item.Properties().tab(ModCreativeModeTab.StoneSoldier_TAB).stacksTo(1))); public static void register(IEventBus eventBus) { Items.register(eventBus); } } This here add the item. package net.ryan.stonesoldiermod.item; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.util.LazyLoadedValue; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.item.ArmorMaterial; import net.minecraft.world.item.Items; import net.minecraft.world.item.crafting.Ingredient; import net.ryan.stonesoldiermod.stonesoldierMod; import java.util.function.Supplier; public enum ModArmorMaterials implements ArmorMaterial { HEMONITE("hemonite", 39, new int[]{3, 6, 8, 3}, 20, SoundEvents.ARMOR_EQUIP_NETHERITE, 5.0F, 0F, () -> Ingredient.of(ModItems.HEMONITE.get())); private static final int[] HEALTH_PER_SLOT = new int[]{13, 15, 16, 11}; private final String name; private final int durabilityMultiplier; private final int[] slotProtections; private final int enchantmentValue; private final SoundEvent sound; private final float toughness; private final float knockbackResistance; private final LazyLoadedValue<Ingredient> repairIngredient; private ModArmorMaterials(String p_40474_, int p_40475_, int[] p_40476_, int p_40477_, SoundEvent p_40478_, float p_40479_, float p_40480_, Supplier<Ingredient> p_40481_) { this.name = p_40474_; this.durabilityMultiplier = p_40475_; this.slotProtections = p_40476_; this.enchantmentValue = p_40477_; this.sound = p_40478_; this.toughness = p_40479_; this.knockbackResistance = p_40480_; this.repairIngredient = new LazyLoadedValue<>(p_40481_); } public int getDurabilityForSlot(EquipmentSlot p_40484_) { return HEALTH_PER_SLOT[p_40484_.getIndex()] * this.durabilityMultiplier; } public int getDefenseForSlot(EquipmentSlot p_40487_) { return this.slotProtections[p_40487_.getIndex()]; } public int getEnchantmentValue() { return this.enchantmentValue; } public SoundEvent getEquipSound() { return this.sound; } public Ingredient getRepairIngredient() { return this.repairIngredient.get(); } public String getName() { return stonesoldierMod.MOD_ID + ":" + this.name; } public float getToughness() { return this.toughness; } public float getKnockbackResistance() { return this.knockbackResistance; } } and this i use for the tier. and if i have the script in which folder does it need to go in in the folder where this script in is or a driffent. i am pretty new to this so i hope you guys can help me.
-
Forge server block update not working
pixelcaft replied to pixelcaft's topic in Support & Bug Reports
i already have the fix on it you can fix it with the mod: Connectivity[Forge/Fabric] -
Forge server block update not working
pixelcaft replied to pixelcaft's topic in Support & Bug Reports
its not the mod want it works with normal minecraft blocks but not with modded this is the error i get: (can this be solved???) 18:25:31.903 net.minecraft.util.thread.BlockableEventLoop Render thread Error executing task on Client java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.block.state.BlockState.m_60734_()" because "p_46606_" is null at TRANSFORMER/minecraft@1.18.2/net.minecraft.world.level.Level.m_6933_(Level.java:188) at TRANSFORMER/minecraft@1.18.2/net.minecraft.world.level.Level.m_7731_(Level.java:178) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.multiplayer.ClientPacketListener.m_205522_(ClientPacketListener.java:594) at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket.m_132992_(ClientboundSectionBlocksUpdatePacket.java:72) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.multiplayer.ClientPacketListener.m_5771_(ClientPacketListener.java:593) at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket.m_5797_(ClientboundSectionBlocksUpdatePacket.java:64) at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket.m_5797_(ClientboundSectionBlocksUpdatePacket.java:14) at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:116) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1013) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.main.Main.main(Main.java:205) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at MC-BOOTSTRAP/fmlloader@1.18.2-40.1.54/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.0.0/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) -
i made my own modpack with customs blocks and a sever to play. with the contruction wand mod when i use the wand in my server its place the blocks but i cant see the blocks i can walk in the invisble block than i clitch but if i re-login in the server i see the block but in my singelplayer its working just normal have anyone a idea how to solve this???
-
Solved Bug by software CurseForge