mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Made Requested Changes
This commit is contained in:
parent
a33cfdb12d
commit
644878c534
@ -43,19 +43,17 @@ public class RuneOfUnemployment extends SimpleSlimefunItem<EntityInteractHandler
|
||||
if(v.getProfession() == Profession.NONE || v.getProfession() == Profession.NITWIT)
|
||||
return;
|
||||
|
||||
if (p.getGameMode() != GameMode.CREATIVE) {
|
||||
if (p.getGameMode() != GameMode.CREATIVE)
|
||||
ItemUtils.consumeItem(item, false);
|
||||
}
|
||||
|
||||
v.setVillagerExperience(0);
|
||||
v.setProfession(Profession.NONE);
|
||||
|
||||
Double offset = ThreadLocalRandom.current().nextDouble(0, 0.5);
|
||||
double o1 = 0;
|
||||
|
||||
double o2 = offset / 2;
|
||||
double o3 = 0;
|
||||
|
||||
v.getWorld().spawnParticle(Particle.CRIMSON_SPORE, v.getLocation(), 10, o1, o2, o3,0.0d);
|
||||
|
||||
v.getWorld().spawnParticle(Particle.CRIMSON_SPORE, v.getLocation(), 10, 0, o2, 0,0.0d);
|
||||
v.getWorld().spawnParticle(Particle.ENCHANTMENT_TABLE, v.getLocation(), 5, 0.04d, 1d, 0.04d);
|
||||
|
||||
}
|
||||
|
@ -9,14 +9,14 @@ import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
|
||||
import me.mrCookieSlime.Slimefun.api.SlimefunItemStack;
|
||||
|
||||
/**
|
||||
* This {@link SlimefunItem} can only be obtained via bartering with a {@link Piglin}.
|
||||
* This {@link SlimefunItem} can only be obtained via bartering with a {@link Piglin}, its
|
||||
* only current uses is the recipe for crafting the {@link RuneOfUnemployment}.
|
||||
*
|
||||
* @author dNiym
|
||||
*
|
||||
* @see PiglinBarterDrop
|
||||
*
|
||||
*/
|
||||
|
||||
public class OrganicNetherGoo extends SlimefunItem implements PiglinBarterDrop {
|
||||
|
||||
private final ItemSetting<Integer> chance = new ItemSetting<>("barter-chance", 3);
|
||||
|
@ -271,8 +271,7 @@ public final class ResearchSetup {
|
||||
register("lead_clothing", 260, "Lead Clothing", 14, SlimefunItems.REINFORCED_CLOTH);
|
||||
register("tape_measure", 261, "Tape Measure", 7, SlimefunItems.TAPE_MEASURE);
|
||||
register("iron_golem_assembler", 262, "Automated Iron Golems", 30, SlimefunItems.IRON_GOLEM_ASSEMBLER);
|
||||
register("unemployment_rune", 263, "Reset Villager Trades", 29, SlimefunItems.UNEMPLOYMENT_RUNE);
|
||||
register("organic_nether_goo", 264, "Organic Nether Goo", 14,SlimefunItems.ORGANIC_NETHER_GOO);
|
||||
register("unemployment_rune", 263, "Reset Villager Trades", 29, SlimefunItems.UNEMPLOYMENT_RUNE, SlimefunItems.ORGANIC_NETHER_GOO);
|
||||
|
||||
}
|
||||
|
||||
|
@ -98,6 +98,7 @@ public enum HeadTexture {
|
||||
MISSING_TEXTURE("e9eb9da26cf2d3341397a7f4913ba3d37d1ad10eae30ab25fa39ceb84bc"),
|
||||
MINECRAFT_CHUNK("8449b9318e33158e64a46ab0de121c3d40000e3332c1574932b3c849d8fa0dc2"),
|
||||
PIGLIN_HEAD("2882af1294a74023e6919a31d1a027310f2e142afb4667d230d155e7f21dbb41");
|
||||
|
||||
private final String texture;
|
||||
|
||||
HeadTexture(String texture) {
|
||||
|
Loading…
Reference in New Issue
Block a user