nms custom villager and restructuring for teams

This commit is contained in:
ruby
2025-01-05 01:27:42 +13:00
parent 35c7124451
commit f8825d535f
17 changed files with 347 additions and 162 deletions

View File

@ -6,12 +6,8 @@ import org.bukkit.Location
import org.bukkit.Material
import org.bukkit.entity.Player
class Blacksmith: Building {
override fun showPlaceHint(player: Player) {
PlaceHint.add(player, "house2", ::place, PlaceHintValidators::allReplaceable)
}
fun place(location: Location, sizeX: Float, sizeY: Float, sizeZ: Float) {
class Blacksmith(location: Location, variant: Int): Building(location, variant) {
fun place(location: Location, sizeX: Float, sizeY: Float, sizeZ: Float, offsetY: Int) {
for (x in 0..<sizeX.toInt())
for (y in 0..<sizeY.toInt())
for (z in 0..<sizeZ.toInt())