This commit is contained in:
parent
9a678ea736
commit
18d9018796
@ -24,9 +24,9 @@ EssentialsX,其中D代表Deer。
|
|||||||
|
|
||||||
![image-20240118174020596](https://ssl.lunadeer.cn:14437/i/2024/01/18/65a8f204dcb15.png)
|
![image-20240118174020596](https://ssl.lunadeer.cn:14437/i/2024/01/18/65a8f204dcb15.png)
|
||||||
|
|
||||||
可以通过`八个木棍`+`一个玻璃板`合成隐形展示框![](https://ssl.lunadeer.cn:14437/i/2024/01/16/65a62829e167b.png)
|
可以通过`八个木棍`+`一个玻璃板`合成隐形展示框![](https://ssl.lunadeer.cn:14437/i/2024/04/19/6621ce4eeabbf.png)
|
||||||
|
|
||||||
或者`八个烈焰棒`+`一个玻璃板`合成隐形发光展示框![](https://ssl.lunadeer.cn:14437/i/2024/01/16/65a628356722d.png)
|
或者`一个隐形展示框`+`一个萤石粉`合成隐形发光展示框![](https://ssl.lunadeer.cn:14437/i/2024/04/19/6621ce915ef3c.png)
|
||||||
|
|
||||||
当隐形展示框中没有东西时和普通展示框没有区别,**只有在将要展示的物品放置在隐形展示框中时展示框才会自动隐形**
|
当隐形展示框中没有东西时和普通展示框没有区别,**只有在将要展示的物品放置在隐形展示框中时展示框才会自动隐形**
|
||||||
。取下展示框中的物品后展示框会自动恢复到现形状态,避免找不到隐形的空展示框。
|
。取下展示框中的物品后展示框会自动恢复到现形状态,避免找不到隐形的空展示框。
|
||||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.lunadeer</groupId>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>EssentialsD</artifactId>
|
<artifactId>EssentialsD</artifactId>
|
||||||
<version>1.15.8</version>
|
<version>1.15.10</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>EssentialsD</name>
|
<name>EssentialsD</name>
|
||||||
|
@ -6,6 +6,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.ShapedRecipe;
|
import org.bukkit.inventory.ShapedRecipe;
|
||||||
|
import org.bukkit.inventory.ShapelessRecipe;
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
import org.bukkit.inventory.meta.ItemMeta;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
|
|
||||||
@ -13,14 +14,12 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class InvisibleGlowItemFrame {
|
public class InvisibleGlowItemFrame {
|
||||||
|
public static ShapelessRecipe getRecipe() {
|
||||||
public static ShapedRecipe getRecipe() {
|
|
||||||
NamespacedKey key = new NamespacedKey(EssentialsD.instance, "invisible_glow_item_frame");
|
NamespacedKey key = new NamespacedKey(EssentialsD.instance, "invisible_glow_item_frame");
|
||||||
ItemStack item = getItemStack();
|
ItemStack item = getItemStack();
|
||||||
ShapedRecipe recipe = new ShapedRecipe(key, item);
|
ShapelessRecipe recipe = new ShapelessRecipe(key, item);
|
||||||
recipe.shape("sss","sgs","sss");
|
recipe.addIngredient(InvisibleItemFrame.getItemStack());
|
||||||
recipe.setIngredient('s',Material.BLAZE_ROD);
|
recipe.addIngredient(Material.GLOWSTONE_DUST);
|
||||||
recipe.setIngredient('g',Material.GLASS_PANE);
|
|
||||||
return recipe;
|
return recipe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user