thegaming999 / blockchanger Goto Github PK
View Code? Open in Web Editor NEW1.7 - 1.20.4 util that allows you to change blocks at blazing fast speeds
License: Do What The F*ck You Want To Public License
1.7 - 1.20.4 util that allows you to change blocks at blazing fast speeds
License: Do What The F*ck You Want To Public License
This library is really cool, but would be more useful if it implemented methods to set blocks based on BlockData.
Good morning,
I try to ensure that when I place a block ( here air in the particle selection ) the blocks next to it are not updated, (see screenshot)
I use the #setBlock method:
BlockChanger.setBlock(p.getWorld(), bv3.getX(), bv3.getY(), bv3.getZ(), Material.AIR, false);
I deactivate the parameter update,
I don't know if it's normal
I saw your project in a spigotmc thread and recently, they updated the thread (Aug 13, 2023) with a new method:
"4. Set blocks in NMS DataPalette (Ultimate; Limited)"
I don't know if it's really useful, I just wanted to notice you of this change so that you can add this method if you wish.
Have a nice day!
From what I can tell, using lava (Material.Lava) as the block to fill does not work.
I first tried this
BlockChanger.setSectionCuboid(upperCorner, lowerCorner, new ItemStack(Material.GLASS), false);
This worked fine, the section was filled with glass.
I then just changed the material type (nothing else), and it didn't work. Instead of filing with lava, it just filled with air.
BlockChanger.setSectionCuboid(upperCorner, lowerCorner, new ItemStack(Material.LAVA), false);
I also tried the asynchronous counterparts, and the SetCuboid() method to no avail.
Hi, when I set to air an area it's working fine, but when I try to place again air in the same area it gives me this error many many times:
java.lang.NullPointerException: null
at com.andrei1058.bedwars.arena.mapreset.slime.BlockUpdaterLegacy.getSection(BlockChanger.java:2366) ~[?:?]
at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger.getSection(BlockChanger.java:1458) ~[?:?]
at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger.access$1000(BlockChanger.java:53) ~[?:?]
at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger$SectionSetWorkload.compute(BlockChanger.java:2135) ~[?:?]
at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger$WorkloadRunnable.run(BlockChanger.java:2042) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched_1.8.8.jar:git-PaperSpigot-445]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched_1.8.8.jar:git-PaperSpigot-445]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_352]
Method: BlockCnahnger.unloadChunk(Chunk chunk)
How it work's?
We are set world.setAutoSave(false) while server start and after player break/place block's in chunk we are run unloadChunk method which rollbacked chunk without restarting the server.
It's needed for minigames plugins.
Hello,
It seems it may not work on 1.19.4 no more.
Errors:
java.lang.NoSuchMethodException: no such method: net.minecraft.world.level.block.Block.m()IBlockData/invokeVirtual
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.world.level.block.state.IBlockData net.minecraft.world.level.block.Block.m()'
Other errors:
java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.invoke(Object)" because "me.sean0402.deluxemines.Blocks.BlockChanger.NMS_ITEM_STACK_TO_ITEM" is null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.