lastest
This commit is contained in:
parent
206367157e
commit
47638e9e48
2 changed files with 3 additions and 11 deletions
|
|
@ -16,15 +16,10 @@ repositories {
|
||||||
name = "sonatype"
|
name = "sonatype"
|
||||||
url = "https://oss.sonatype.org/content/groups/public/"
|
url = "https://oss.sonatype.org/content/groups/public/"
|
||||||
}
|
}
|
||||||
maven {
|
|
||||||
name = "devmart-other"
|
|
||||||
url = "https://nexuslite.gcnt.net/repos/other/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT"
|
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT"
|
||||||
implementation "com.tcoded:FoliaLib:0.2.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def targetJavaVersion = 17
|
def targetJavaVersion = 17
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package xyz.hynse.bbsdfia;
|
package xyz.hynse.bbsdfia;
|
||||||
|
|
||||||
import com.tcoded.folialib.FoliaLib;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
|
@ -15,8 +14,6 @@ import org.bukkit.event.entity.EntityChangeBlockEvent;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
public class Bbsdfia extends JavaPlugin implements Listener {
|
public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
private final Vector velocity1 = new Vector(0, 0.5, -1);
|
private final Vector velocity1 = new Vector(0, 0.5, -1);
|
||||||
private final Vector velocity2 = new Vector(-1, 0.5, 0);
|
private final Vector velocity2 = new Vector(-1, 0.5, 0);
|
||||||
|
|
@ -53,7 +50,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
spawnLoc.setY(spawnLoc.getY() + 0.5);
|
spawnLoc.setY(spawnLoc.getY() + 0.5);
|
||||||
spawnLoc.setZ(spawnLoc.getZ() + 0.5);
|
spawnLoc.setZ(spawnLoc.getZ() + 0.5);
|
||||||
|
|
||||||
// Spawn the first falling block immediately
|
// Spawn the falling block immediately
|
||||||
FallingBlock overworldfallingblock = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
FallingBlock overworldfallingblock = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
||||||
Vector dummyVel = vel.clone();
|
Vector dummyVel = vel.clone();
|
||||||
dummyVel.setY(-dummyVel.getY());
|
dummyVel.setY(-dummyVel.getY());
|
||||||
|
|
@ -76,8 +73,8 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
|
|
||||||
// Spawn a new falling block entity with velocity
|
// Spawn a new falling block entity with velocity
|
||||||
entity.remove();
|
entity.remove();
|
||||||
Location fuck = new Location(Bukkit.getWorld("world_the_end"), 100, 49, 0);
|
Location block = new Location(Bukkit.getWorld("world_the_end"), 100, 49, 0);
|
||||||
fuck.getBlock().setType(Material.AIR);
|
block.getBlock().setType(Material.AIR);
|
||||||
World world = entity.getWorld();
|
World world = entity.getWorld();
|
||||||
Location location = entity.getLocation();
|
Location location = entity.getLocation();
|
||||||
byte data = ((FallingBlock) entity).getBlockData().getAsString().getBytes()[0];
|
byte data = ((FallingBlock) entity).getBlockData().getAsString().getBytes()[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue