#Is there any way to get block type id for onMineBlock?

1 messages · Page 1 of 1 (latest)

dapper cove
#

minedBlockPermutation

errant ginkgo
#

The reason why the error "read-only" happens, is that you accidentally use "=" in the if statement, which means you were trying to assign a value to blockType. (ScriptAPI does not like it to be edited)

You can simply use the actual Equal sign comparison: == or ===