Mage Hand

Mage Hand

167k Downloads

Adding new seed's wont work when not planted on farmland

Meridanus opened this issue ยท 1 comments

commented

My mod implements a custom seed and when i add it to your config file the hand try's to plant on farmland and get stuck.

https://github.com/Meridanus/fabric_xp_storage_1.18/blob/936f0465690dff0c08f9f87e2cbf55a933771d34/src/main/java/com/notker/xp_storage/blocks/XpBerrieBushBlock.java#L57-L61

can you change it so the hand checks which type of block the seeds require instead of the default farmland?
or add the Blocktype to the config file.
This would allow other seeds to be added and planted.

protected boolean isTargetPos(WorldView world, BlockPos pos) {
return pos.isWithinDistance(this.magehand.getStartingPos(),this.range) && world.getBlockState(pos).getBlock().equals(Blocks.FARMLAND) && this.magehand.world.getBlockState(pos.up()).isAir();
}

greetings

commented

If possible, I would like to know how to add seeds to the golden hand. I want to be able to use the golden hand with Farmer's Delight but, it won't recognize any non-vanilla seeds.