Problems with the Nether, and new blocks

17 views
Skip to first unread message

Patrick Ross

unread,
Jul 1, 2020, 1:38:39 AM7/1/20
to Adventures in Minecraft Forum
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.

Martin O'Hanlon

unread,
Jul 1, 2020, 10:44:35 AM7/1/20
to Adventures in Minecraft Forum
Raspberry Juice doesn't support new block ids or interacting with the Nether.

The Minecraft data model and API has changed significantly and in summary it's unlikely RaspberryJuice v1 will be updated. You can read about it here.

https://github.com/zhuowei/RaspberryJuice/issues/97

Reply all
Reply to author
Forward
0 new messages