minecraft(18)
-
블록을 깨면 나를 공격하지 않는 좀비가 나오게 코딩
@EventHandler public void onBlockBreak(BlockBreakEvent event) { Player player = event.getPlayer(); Location blockLocation = event.getBlock().getLocation(); // Spawn a zombie at the block location Zombie zombie = (Zombie) blockLocation.getWorld().spawn(blockLocation.add(0, 1, 0), Zombie.class); // Set properties to make it friendly zombie.setCustomName..
2025.03.19 -
블록을 깨면 그 위치에 좀비가 나오게 코딩
@EventHandler public void onBlockBreak(BlockBreakEvent event) { Location loc = event.getBlock().getLocation(); World world = loc.getWorld(); if (world != null) { Zombie zombie = (Zombie) world.spawnEntity(loc.add(0.5, 0, 0.5), EntityType.ZOMBIE); zombie.setCustomName("Block Guardian"); zombie.setCustomNameVisible(true); } }
2025.03.19 -
spigot plugin 설정
Maven Project 생성Build Path: JDK17 설정/src/resources/config.ymlname: Pluginversion: 1.0main: hys.MobPluginapi-version: 1.20description: My first Spigot plugin!commands: hello: description: Say hello! usage: /hellopom.xml 4.0.0 mincraft plugin 0.0.1-SNAPSHOT plugin spigotmc-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ true ..
2025.03.18 -
Minecraft 이전
다른 ubunbu로 이전파일 복사# 프로세스 죽이기ps -ef | grep java# 실행중인 minecraft 죽이기kill -9 {PID}# 파일 압축: 미리 필요없는 파일 삭제 해야 함zip -r {파일명}.zip {minecraft Home Directory}# 복사하기scp {파일명}.zip {계정}@ip:$HOMEjdk 설치sudo apt updatesudo apt install openjdk-17-jdk# 확인java --version설정 및 기동unzip {파일명}zipcd {디렉토리}# 시작./start.sh오류Error: LinkageError occurred while loading main class org.bukkit.craftbukkit.bootstrap.Main j..
2025.02.22 -
Minecraft 난이도 확인
T > difficulty
2025.02.17 -
Minecraft 1.21.4 업그레이드
JDK 21 설치sudo apt updatesudo yum install java-17-openjdk git -y# 확인java -versionSpigot 업그레이드java -jar BuildTools.jar --rev 1.21.4# spigot-1.21.4.jar로 교체
2025.02.17