Skip to content

Instantly share code, notes, and snippets.

View niwaniwa's full-sized avatar
🏠
Working from home

koke / ni rila niwaniwa

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<map proto="1.3.3">
<name>Sky Cube</name>
<version>1.5.3</version>
<objective>Grab the wool from the enemy's wool room and place it on your victory monument.</objective>
<!-- 制作 -->
<authors>
<author>niwaniwa102</author>
</authors>
<contributors>
<?xml version="1.0" encoding="utf-8"?>
<map proto="1.0.0">
<name>Map name</name>
<version>1.0.0</version>
<authors>
<author>author</author>
</authors>
<spawns>
<spawn type="spawn1" location="x,y,z" yaw="yaw"/>
<spawn type="spawn2" location="x,y,z" yaw="yaw"/>
<?xml version="1.0" encoding="utf-8"?>
<map proto="1.3.3">
<name>Infinite Road</name>
<version>1.4.3</version>
<objective>Grab the wool from the enemy's wool room and place it on your victory monument.</objective>
<authors>
<author uuid="f010845ca9ac4a04bf2761d92f8b03ff"/>
</authors>
<!-- teams -->
<teams>
<?xml version="1.0" encoding="utf-8"?>
<map proto="1.3.3">
<name>Infinite Road 2</name>
<version>1.0.1</version>
<objective>Grab the wool from the enemy's wool room and place it on your victory monument.</objective>
<!-- 制作 -->
<authors>
<author>kokekokko990</author>
</authors>
<!-- 制作協力 -->
<map>
<!-- ver 1.0.0E -->
<!-- 多言語化 -->
<locales>
<!-- ja_JP -->
<locale lang="ja_JP">
<string name="Grab the three wool's from the enemy's wool room and place it on your victory monument." value="敵本拠地にある三つの羊毛を奪取し、台座に設置"/>
<string name="You may not modify base." value="拠点は編集できません。"/>
<string name="You may not modify outside." value="範囲外は編集できません。"/>
<string name="Don't enter the enemy spawn." value="敵の陣地には侵入できません。"/>
<map>
<!-- ver 1.0.0E -->
<kits>
<kit name="spawn">
<item slot="0">IRON_SWORD</item>
<item slot="1">BOW</item>
<item slot="2">IRON_PICKAXE</item>
<item slot="3">IRON_AXE</item>
<item slot="7" amount="64">LOG</item>
<item slot="8" name="French bread!" amount="32">BREAD</item>
<map>
<!-- ver 1.0.0E -->
<!-- item remove -->
<itemremove>
<!-- sword and bow -->
<item>IRON_SWORD</item>
<item>STONE_SWORD</item>
<item>BOW</item>
<!-- 装備 -->
<!-- leather -->
@SuppressWarnings("unused")
public static void tab(Player player, String header, String footer){
CraftPlayer cp = (CraftPlayer) player;
PlayerConnection connection = cp.getHandle().playerConnection;
IChatBaseComponent header1 = ChatSerializer.a("{\"text\": \""+header+"\"}");
IChatBaseComponent footer1 = ChatSerializer.a("{\"text\": \""+footer+"\"}");
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
try{
Field headerField = packet.getClass().getDeclaredField("a");
@niwaniwa
niwaniwa / map.js
Last active August 29, 2015 14:21
match.on('start', function() {
// 15分後発生させる
setTimeout(function() {
match.getWorld().strikeLightning(0,58,90, false);
// playEffect(0,58,90,FIREWORKS_SPARK,1,100);
match.getWorld().strikeLightning(0,58,90, false);
var players = match.getPlayers();
<?xml version="1.0" encoding="utf-8"?>
<map proto="1.3.3">
<name>Natural Fortress</name>
<version>1.0.0</version>
<objective>Destruction of obsidian in the enemy lines.</objective>
<authors>
<author uuid="f010845c-a9ac-4a04-bf27-61d92f8b03ff">KokekoKko_</author>
</authors>
<teams>
<team color="blue" max="35">Blue Team</team>