Posted December 30, 20222 yr Hi, Let say I have an instance of ServerLevel and I what to get a painting as entity at BlockPos. level.getBlockEntity(pos) (level is instance of ServerLevel) returns null for some reason. How can I get painting at given position (if it exists there)?
December 30, 20222 yr A painting is an entity. You need to use one of the level.getEntities() methods with the bounding box (AABB) saying where you are looking. Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
December 30, 20222 yr Thanks! By the way, does this method return creatures/minecarts/ect. as part of list?
December 30, 20222 yr It returns whatever you ask for based on the entity predicate. Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.