Posted September 6, 20205 yr Hello. I'm making an enchantment that when walking over redstone, It fully powers it, but I can't find anything for powering a wire. Here's my code: package com.pickleface.redstone.enchants; import com.pickleface.redstone.Redstone; import net.minecraft.block.Blocks; import net.minecraft.block.RedstoneWireBlock; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentType; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.inventory.EquipmentSlotType; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; public class Energy extends Enchantment { protected Energy() { super(Rarity.RARE, EnchantmentType.ARMOR_FEET, new EquipmentSlotType[] {EquipmentSlotType.FEET}); } @Mod.EventBusSubscriber(modid = Redstone.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public static class Event { @SubscribeEvent public static void onBootsEquipped(TickEvent.PlayerTickEvent event) { PlayerEntity player = event.player; if (player.getBlockState() == Blocks.REDSTONE_WIRE.getDefaultState()) { player.getBlockState().(power redstone wire here, cant find anything) } } } } Any help is appreciated. Have some lorem ispum.
September 6, 20205 yr Author Just now, diesieben07 said: You'd have to replace the block with your own version of redstone wire, but one that does not require a power source. There is no way to make redstone wire emit a signal without it having a source. Oh, okay, I thought there was an override I could do to set it to full power. Have some lorem ispum.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.