#Does anyone know how to fix this error?
1 messages · Page 1 of 1 (latest)
What are you trying to do cuz I don't think "BlockLocation" is a thing
This error indicates that the script is trying to import or use 'BlockLocation' from the '@minecraft/server' module, but it couldn't find the 'BlockLocation' export within that module. Double-check the module's documentation or source code to ensure 'BlockLocation' is a valid export, or there might be a typo in the import statement.
ChatGPT 💀
i mean i used chatgpt to explain the error to him
BlockLocation doesn't exist anymore
How to actually get the errors?
There isn't a console
Turn on this in Creator in Settings
BlockLocation and Location changed to Vector3. "@minecraft/server" module 1.8.0-beta version changed to Vector
btw can u give me the texture pack??
Find the keyword "asteroid client mcpe 1.19" on YouTube
So just change BlockLocation to Vector and it will work, right?
Importing everything is unnecessary for it to work. All you need is world and system, and most of the stuff will branch out from their property and methods.
In this case, world.dimension.getBlock() will return a Block Class instance, even if you did not import the Block class from "@minecraft/server", the method and property will still be usable.
Importing it is only necessary if you use TypeScript where the data type is strict, or when you need to create a new instance of that class (BlockPermutation, ItemStack, Server Forms), or you just do it for instanceof keyword
For your issue, just import what is necessary, Vector doesn't need to be imported, and you still be able to access the block.location property
(In the first place, Vector Class is just a fancier way to do Math with Vector3. Vector Class is not Vector3 )