I just started with the mcpi code using the Spigot server. I can do basic things like teleport, set blocks, get block ID's etc.
However, I am having 2 problems.
1. I can't get ID's for new blocks in 1.16.1, specifically the new nether blocks.
2. I can't get any block information for block inside the nether, even when I am there.
For example, if I start the server and go to the nether, then run this code:
import mcpi.minecraft as minecraft
mc = minecraft.Minecraft.create()
curPos = mc.player.getTilePos()
x=curPos.x
y=curPos.y-1 # The "-1" is because I want the ID of the block under my feet.
z=curPos.z
mc.postToChat(mc.getBlockWithData(x,y,z)
I only get the block ID corresponding to the block in the overworld. Can anyone help me with these 2 problems? My son wants to write a search algorithm to search for some rare blocks in the nether.