firtana
36
src/main/java/dev/tggamesyt/szar/FirtanaItem.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package dev.tggamesyt.szar;
|
||||
|
||||
import net.fabricmc.fabric.api.networking.v1.PacketByteBufs;
|
||||
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.TypedActionResult;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class FirtanaItem extends Item {
|
||||
|
||||
public FirtanaItem(Item.Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand) {
|
||||
|
||||
if (!world.isClient) {
|
||||
|
||||
for (ServerPlayerEntity player : ((ServerWorld) world).getPlayers()) {
|
||||
PacketByteBuf buf = PacketByteBufs.create();
|
||||
buf.writeString(user.getUuidAsString());
|
||||
ServerPlayNetworking.send(player, Szar.PLAY_VIDEO, buf);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return TypedActionResult.success(user.getStackInHand(hand));
|
||||
}
|
||||
}
|
||||
@@ -165,7 +165,6 @@ public class SlotMachineBlockEntity extends BlockEntity {
|
||||
// old sendcontentupdates
|
||||
if (!blockEntity.getSpinning()) {
|
||||
if (blockEntity.getWorld().getTime() % IDLE_SPEED == 0) {
|
||||
System.out.println("setting random symbols");
|
||||
blockEntity.setSymbols(
|
||||
blockEntity.random.nextInt(7),
|
||||
blockEntity.random.nextInt(7),
|
||||
|
||||
@@ -125,6 +125,8 @@ public class Szar implements ModInitializer {
|
||||
new Identifier(MOD_ID, "plane_anim");
|
||||
public static final Identifier NAZI_HAND_GESTURE = new Identifier("szar", "hit_hand");
|
||||
public static final Identifier OPEN_URL = new Identifier(MOD_ID, "epsteinfiles");
|
||||
public static final Identifier PLAY_VIDEO =
|
||||
new Identifier(MOD_ID, "play_video");
|
||||
|
||||
public static final Block SZAR_BLOCK =
|
||||
new SzarBlock();
|
||||
@@ -320,6 +322,7 @@ public class Szar implements ModInitializer {
|
||||
entries.add(Szar.EFN_DISK);
|
||||
entries.add(Szar.SLOT_MACHINE);
|
||||
entries.add(Szar.ROULETTE);
|
||||
entries.add(Szar.FIRTANA);
|
||||
// nsfw
|
||||
entries.add(Szar.FASZITEM);
|
||||
entries.add(Szar.CNDM);
|
||||
@@ -811,6 +814,11 @@ public class Szar implements ModInitializer {
|
||||
new Identifier(MOD_ID, "towers"),
|
||||
new BlockItem(OBELISK_CORE, new Item.Settings())
|
||||
);
|
||||
public static final Item FIRTANA = Registry.register(
|
||||
Registries.ITEM,
|
||||
new Identifier(MOD_ID, "firtana"),
|
||||
new FirtanaItem(new Item.Settings())
|
||||
);
|
||||
static VoxelShape shape23 = VoxelShapes.cuboid(0.25f, 0f, 0f, 0.75f, 0.25f, 0.125f);
|
||||
static VoxelShape shape24 = VoxelShapes.cuboid(0.125f, 0f, 0.125f, 0.875f, 0.125f, 0.25f);
|
||||
static VoxelShape shape25 = VoxelShapes.cuboid(0f, 0f, 0.25f, 1f, 0.125f, 0.75f);
|
||||
|
||||
@@ -82,5 +82,6 @@
|
||||
"item.szar.wheel": "Wheel",
|
||||
"block.szar.slot_machine": "Slot Machine",
|
||||
"block.szar.casino": "Casino Title",
|
||||
"block.szar.roulette": "Roulette"
|
||||
"block.szar.roulette": "Roulette",
|
||||
"item.szar.firtana": "Firtana"
|
||||
}
|
||||
|
||||
6
src/main/resources/assets/szar/models/item/firtana.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "szar:item/firtana"
|
||||
}
|
||||
}
|
||||
@@ -106,5 +106,13 @@
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"firtana": {
|
||||
"sounds": [
|
||||
{
|
||||
"name": "szar:firtana",
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
BIN
src/main/resources/assets/szar/sounds/firtana.ogg
Normal file
BIN
src/main/resources/assets/szar/textures/item/firtana.png
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_001.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_002.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_003.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_004.png
Normal file
|
After Width: | Height: | Size: 307 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_005.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_006.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_007.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_008.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_009.png
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_010.png
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_011.png
Normal file
|
After Width: | Height: | Size: 327 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_012.png
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_013.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_014.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_015.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_016.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_017.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_018.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_019.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_020.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_021.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_022.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_023.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_024.png
Normal file
|
After Width: | Height: | Size: 314 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_025.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_026.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_027.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_028.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_029.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_030.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_031.png
Normal file
|
After Width: | Height: | Size: 314 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_032.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_033.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_034.png
Normal file
|
After Width: | Height: | Size: 322 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_035.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_036.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_037.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_038.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_039.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_040.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_041.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_042.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_043.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_044.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_045.png
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_046.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_047.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_048.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_049.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_050.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_051.png
Normal file
|
After Width: | Height: | Size: 309 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_052.png
Normal file
|
After Width: | Height: | Size: 309 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_053.png
Normal file
|
After Width: | Height: | Size: 309 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_054.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_055.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_056.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_057.png
Normal file
|
After Width: | Height: | Size: 314 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_058.png
Normal file
|
After Width: | Height: | Size: 311 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_059.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_060.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_061.png
Normal file
|
After Width: | Height: | Size: 311 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_062.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_063.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_064.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_065.png
Normal file
|
After Width: | Height: | Size: 314 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_066.png
Normal file
|
After Width: | Height: | Size: 311 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_067.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_068.png
Normal file
|
After Width: | Height: | Size: 309 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_069.png
Normal file
|
After Width: | Height: | Size: 308 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_070.png
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_071.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_072.png
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_073.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_074.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_075.png
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_076.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_077.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_078.png
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_079.png
Normal file
|
After Width: | Height: | Size: 311 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_080.png
Normal file
|
After Width: | Height: | Size: 311 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_081.png
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_082.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_083.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_084.png
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_085.png
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_086.png
Normal file
|
After Width: | Height: | Size: 324 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_087.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_088.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_089.png
Normal file
|
After Width: | Height: | Size: 321 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_090.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_091.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
src/main/resources/assets/szar/textures/video/frame_092.png
Normal file
|
After Width: | Height: | Size: 321 KiB |