AgriCraft

AgriCraft

30M Downloads

Disabling vanilla planting disables right clicking with crop items in other mods

WolfieWaffle opened this issue ยท 3 comments

commented

I tried to right click a potato onto a block in my mod, and got the "Vanilla planting is disabled" message. I assume this is because you are not checking that the block that is being right clicked is farmland.

commented

Good catch, that would be an issue.

I believe that the solution would be to check if the seed is being clicked on a valid soil?

However that would not catch planting on soils not registered to AgriCraft.

What I need is some kind of forge hook perhaps...

commented

state.getBlock().canSustainPlant(state, world, pos, EnumFacing.UP, seedItem)

commented

Thanks @TehNut!