Commit graph

102 commits

Author SHA1 Message Date
tterrag
c330d163ec Update Registrate, add proof of concept new block registration pattern 2020-04-26 00:58:38 -04:00
tterrag
2cccbca11b Add registrate as dependency, experimental refactor of AllBlocks 2020-04-19 16:16:00 -04:00
tterrag
ed19a65b9f Port new code to 1.15 2020-04-12 16:27:08 -04:00
tterrag
a1605af46a Merge remote-tracking branch 'origin/mc1.14-v0.2.3' into mc1.15-v0.2.2
# Conflicts:
#	build.gradle
#	src/main/java/com/simibubi/create/foundation/utility/SuperByteBuffer.java
#	src/main/java/com/simibubi/create/foundation/world/AllWorldFeatures.java
#	src/main/java/com/simibubi/create/modules/contraptions/components/crusher/CrushingWheelBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/components/fan/EncasedFanBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/components/millstone/MillstoneBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/components/turntable/TurntableBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/processing/BasinBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/redstone/AnalogLeverBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/relays/advanced/sequencer/SequencedGearshiftBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/relays/belt/BeltBlock.java
#	src/main/java/com/simibubi/create/modules/contraptions/relays/belt/BeltTileEntityRenderer.java
#	src/main/java/com/simibubi/create/modules/curiosities/partialWindows/WindowInABlockModel.java
#	src/main/java/com/simibubi/create/modules/logistics/block/RedstoneLinkBlock.java
#	src/main/java/com/simibubi/create/modules/logistics/block/StockswitchBlock.java
#	src/main/java/com/simibubi/create/modules/palettes/CTGlassPaneBlock.java
#	src/main/java/com/simibubi/create/modules/schematics/block/SchematicTableBlock.java
#	src/main/java/com/simibubi/create/modules/schematics/block/SchematicannonBlock.java
#	src/main/resources/META-INF/mods.toml
2020-04-12 15:25:52 -04:00
simibubi
d1ff9f4e30 Broken UVs
- Fixed UV shifts not working consistently with high-res resource packs
- Fixed window panes not connecting their textures with windowlogged blocks
- Fixed buttons and pressure plates not resetting after being moved
- Fixed missing tooltips on custom swords
- Redstone links now move when the block they are attached to is moved
2020-04-08 20:31:06 +02:00
simibubi
810191aa89 Cast with Caution
- Revisited every unchecked TileEntity cast
- Redstone Links can now be toggled with a wrench
- Redstong Links are now portable on contraptions
- Schematicannon no longer inserts held schematics automatically
- Saws no longer accept items when their speed is zero
2020-04-05 18:02:46 +02:00
tterrag
1e0711fa95 1.15 port checkpoint: kinetic rendering mostly complete 2020-04-04 21:54:24 -04:00
tterrag
f16e534a89 The rest of the compile errors, a few rendering fixes 2020-03-30 01:45:29 -04:00
tterrag
e1e3220b68 Add server versions of wrapped worlds 2020-03-29 14:39:51 -04:00
tterrag
53f0524200 Some mass renames: onBlockActivated, Entity.posXYZ, etc. 2020-03-29 11:46:00 -04:00
tterrag
e52fa26fda Yet more porting work 2020-03-29 00:07:49 -04:00
tterrag
748f8af229 Merge remote-tracking branch 'origin/mc1.14-v0.2.2' into mc1.15-v0.2.2
Conflicts:
	build.gradle
	src/main/java/com/simibubi/create/AllTileEntities.java
	src/main/java/com/simibubi/create/foundation/world/OreFeature.java
	src/main/java/com/simibubi/create/modules/contraptions/components/contraptions/ContraptionEntity.java
	src/main/java/com/simibubi/create/modules/contraptions/components/crafter/MechanicalCrafterTileEntityRenderer.java
	src/main/java/com/simibubi/create/modules/contraptions/relays/belt/BeltColor.java
2020-03-28 22:28:49 -04:00
simibubi
9a77081f3a Recipe tweaks
- Gunpowder can now be multiplied in the mixer
- Metal blocks can now be crushed back into the crushed ores. (Inefficient enough to avoid any loops)
- Crushing wool in the millstone is less effective
2020-03-29 00:48:18 +01:00
Zelophed
46d54a597c added datagen for ItemTags to AllBlocks and AllItems 2020-03-28 23:20:25 +01:00
Zelophed
b885a60003 added datagen for BlockTags to AllBlocks
-use the runData run configuration to generate json data
2020-03-28 02:27:43 +01:00
simibubi
c3f781b762 The Millstone
- Added Millstone
- Added Milling recipe type
- Crushing wheels can apply milling recipes
- Added a command for clearing the buffer cache
- Any cog-containing machine can now connect to large cogwheels
- Added French localization by Kiro
- Removed unused lang entries
2020-03-26 23:03:56 +01:00
simibubi
f9b9659bc6 Bugs, Recipes and Storage Blocks
- Added Zinc and Brass Block
- Added compat for mechanical Saw with BoP's logs
- Fixed Crafters and Mixers not handling container items properly
- Fixed Shafts not dropping when breaking a belt segment with pulley
- Added missing loot table for copper blocks and shingles
2020-03-23 17:04:09 +01:00
tterrag
85d0d5244a Misc porting, mostly rendering. Mass rename RenderSystem/ILightReader
Under 500 errors!
2020-03-22 23:06:37 -04:00
tterrag
501caa52b0 Non-fast TER updates 2020-03-22 17:58:13 -04:00
tterrag
c44908b210 Initial experimental rendering changes 2020-03-22 15:19:01 -04:00
simibubi
75145976d3 Playtest Issues, Part V
- Changed a few stress balancing params
- Fixed crash when resource reloading outside of a world
- Fixed crash when moving a tile-entity only contraption with shaders preset
- Fixed drill not breaking blocks after being moved
- Lowered max speed of Mechanical Bearing in generator mode
- Redstone wire and diodes aswell as flower pots can now be moved
- Fixed in-world neighbour checking of moved blocks that are not doors
- Bumped version in mods.toml
2020-03-18 21:38:56 +01:00
simibubi
8c793b8d28 Portable Belts
- Belts can now be moved and rotated by a contraption, holding on to its items if possible.
- Fixed belts not transporting entities when moving at less than 32 rpm
- Fixed belt initialization to allow migration old belts and re-initialization of moved belts
- Added a little in-world tooltip for kinetic blocks rotating below their required speed level
- Fixed kinetic tileentities keeping their previous speed when animated in a contraption
- Fixed motors not trying to overpower a network when directly attached on placement
- Belts now spawn a reasonable amount of particles when broken
- Coloured belts now spawn coloured particles when broken
- Fixed belts segments dropping too many connectors when not broken by a player
- Fixed falldamage being applied after an entity has left the belt it fell upon
- Fixed belt voxelshapes not being cached properly, leading to some bad performance hit when broken or looked at
- Fixed blazing tools not always smelting mob drops
2020-03-10 16:34:04 +01:00
simibubi
71c65615bc More Contraption Bug-Fixes
- Fixed containers dropping items when moved while also holding on to them
- Fixed filters dropping when a filterable tile entity gets moved
- Fixed actors rotating in the central axis of a bearing contraption not activating as no new positions are visited
- Shulker boxes can now be moved in a contraption
- Fixed general tile entities not rendering on moving contraptions
- Chests and Flexcrates can now be used as portable storage in a moving contraption
- Fixed mechanical pistons not moving on the first activation
- Fixed occasional crash when moving deployers
- Made some more blocks piston-safe
- Double flexcrates now split when at least one half gets picked up by a contraption
2020-03-08 18:25:56 +01:00
simibubi
ea5c77b2b2 Optimizing and Stabilizing Kinetic Networks
- Kinetic components can no longer overpower components of their own network, fixes speed-up cycles in certain arrangements
- Kinetic networks are now identified by the packed block position of the source
- Networks now get assigned to tileentities within the tick of them changing, fixes late overstress callbacks messing with some components
- Wrench now keeps the instance of kinetic TEs intact when rotating their blocks, it only updates their kinetic connections
- Kinetic blocks no longer carry over their rotation and source information when moved by pistons or rotated by bearings
- Fixed crash when pulley retracts without an attached structure
- Deployers now hold onto their stack of items if they match the filter
- Fixed Deployers duplicating activated blocks when not facing an axis-aligned direction
- Fixed belts not properly re-attaching the shafts left behind when destroyed
2020-03-06 23:25:13 +01:00
simibubi
5d2bbc930b Minor refactors & Generic blockzapper
- Finished builder pattern refactor in AllShapes
- Generalized some blockzapper code for its upcoming cousin
2020-03-04 14:06:34 +01:00
simibubi
b8eb35e5c5 Rotation Speed Controller
- Added the Rotation Speed Controller for achieving precise speed values in survival mode (like the motor in 0.1)
- Introduced a builder pattern for voxelshape(r) creation
2020-02-28 22:17:40 +01:00
simibubi
81a2e314bc Contraption bugs and balance
- Added a config option to disable the stress/torque mechanic entirely
- Water wheel speed is halved and now configurable
- Water wheels now validate their current speed from time to time
- Fixed windmill bearings counting their sail blocks incorrectly
- Fixed windmill bearings not assembling when placed in a powered block position
- Fixed Contraption controllers not removing their entity reference on the client when disassembled
- Bearings no longer start rotating when no block was found
- Contraptions no longer move unbreakable blocks
- Pistons no longer assemble the whole line of blocks when retracting
- Non-sticky pistons no longer pull blocks back when assembled
- Pulley no longer assembles when the structure by itself is immovable
- Fixed pistons applying reversed motion in some orientations
- Fixed piston contraptions not including the poles into its render bounds
- Fixed Contraptions not culling backfaces when rendered
- Translucent blocks now get moved to the back of the render order in contraptions, fixes hidden block faces between translucent and non-translucent blocks
- Fixed Contraptions being movable through water, fans and other means of applying motion to entities.
- Belt segments can no longer be rotated by a wrench
- Hand cranks are now gated behind brass and sheet production
2020-02-16 18:26:06 +01:00
simibubi
6f06ebffa3 Merge branch '0.2' of https://github.com/simibubi/Create into 0.2 2020-02-15 18:54:33 +01:00
simibubi
b1a0f25f4b Clockwork Bearing and Rope Pulley
- Stationary Contraption Entities no longer sync positions like normal entities
- Flimsy attempts at making linear contraption movement smoother, especially at differing tick speeds between server and client
- Added slot covers for the Mechanical Crafter
- Added the Clockwork Bearing
- Added the Rope Pulley
- Server speed no longer tries to sync when game is paused
- Fixed crash when moving block breakers are loaded in while stalled
- Fixed Cuckoo Clock's angle interpolation when tps is low
2020-02-15 18:54:23 +01:00
Zelophed
50ba34e779 added foundation for SoundEvents
added a few soundevents for custom subtitles
sounds.json can be generated by launching the main in foundation/utility/data/Generator.java (this should be done before starting the client when new sound events were added)
2020-02-15 01:57:16 +01:00
simibubi
7dd29e9ffd Portable Deployers
- Server speed sync no longer goes nuts when server speed increased from low tps
- Flimsy attempts at better syncing a bearings' current angle
- Portable Storage abilities are (for now) available to the Barrel only
- Deployers can now be mounted on moving structures and will activate at every visited block position
2020-02-13 00:12:05 +01:00
simibubi
e0b36a79c9 Mounted Storage and Contraption Stalling
- Saws are now portable and chop trees while mounted
- Portable contraptions can now hold an inventory
- Saw, Drill and Harvester now fill a contraptions internal storage before dropping items
- Mounted blocks can now hold moving contraptions in place
- Saw and Drill now briefly stall contraptions while breaking blocks in front of themselves
- Refactored IHaveMovementBehaviour to IPortableBlock and MovementBehaviour
- Fixed Harvester blades rotating in the wrong direction sometimes
- Shadows on portable contraptions are now a little less aggressive
- Added a block for item exchange with storage on contraptions
- Fixed link range config registering with wrong id
- Added a utility for purposely slowing down animations on the client to match server tps
- Smart Tileentities now lazy tick on initialization
- Fixed crash when breaking active bearings
- Fixed crash when cart assembler fails to assemble a contraption
- Fixed goggles having missing textures
- Reworked Schematicannon Model
- Removed Schematicannon Creatifier from creative tab
2020-02-12 01:36:18 +01:00
simibubi
6ea0dbd6ab Added Flywheels and Furnace Engines
- Flywheels and Engines form a powerful rotation source multiblock
- Furnace engines only activate when attached to a running furnace
2020-02-05 12:36:22 +01:00
simibubi
aacc52d84a Refactored animated block partials
- Moved all block partials used only for rendering out of the registry
- Refactored model registry hooks and custom block model handling
- Added a safety layer for all tile entity renderers, addresses #76
- Overstressed indicator no longer shows when the kinetic source changes
- Fixed framed glass rendering glass textures inbetween blocks
- Fixed blockzapper adding itself twice to the item group
- Fixed basing not spawning particles properly
- Updated Forge
- Reworked Schematicannon model
2020-02-04 14:48:21 +01:00
simibubi
005a9e3177 Analog Gearshifting
- Added the analog belt pulley, an encased belt with adjustable speed transfer
- Added an analog redstone lever
- Fixed motor values jumping inconsistently
- Stabilized Rotation propagation a little
- Formatted numbers shown when wearing goggles
- Kinetic blocks no longer convey weak redstone power to neighbours
- Removed obsolete overlay text for rainbow debug
- Fixed Deployers not updating placed/removed fluids consistently
- Fixed Crash when entities placed by a deployer drop loot
2020-02-03 00:31:55 +01:00
simibubi
87f61ce538 Bug Fixes and Enhancements
- Fixed Tree fertilizer spawning grass when growing large spruce trees
- Nerfed durability of the Deforester
- Items dropped by a tree cut with a Deforester now 'fall' away from the player
- Blockzappers can now be used together with the Symmetry Wand
- Fixed deployer not looking in the right direction
- You can now put items on Crafters directly
- Tree cutting is less lenient about whether the trunk was fully cut or not
- Fixed filtering not looking past first matched item if said item doesn't have the required amount
2020-02-01 14:26:19 +01:00
simibubi
ce4c5d5c50 Better Goggles and Rpm
- Shifted speed unit to resemble rpm (revolutes per minute)
- Moved stress defaults to new class
- Adjusted processing duration for machines to respect the visual speed change
- Drastically lowered the speed range
- Stressed networks now indicate better
- Goggles now show detailed information when looking at components, especially the gauges
- Sand Paper can now be used on items held in the offhand
- Item entities on a moving crushing wheel can no longer be picked up
- Crushing wheels no longer drop their contents when the wheels stop moving
2020-02-01 09:39:17 +01:00
simibubi
71b7efe85f Hand Crank and Fan Nozzle
- Added the Hand Crank
- Added the Nozzle, a fan attachment for pushing entities away or pulling them towards itself
2020-01-28 20:35:46 +01:00
simibubi
eff0c170b6 The registry super purge
- Removed old Advancement managers
- Removed all unfinished logistical features from the registry
- Added new Crafting ingredients
- Added Sand Paper, for a polishing recipe type and repairing tools
- Changed Blockzapper materials
- Added the ability to include catalyst-ingredients in processing recipes
- Added some ingredient/output count validation for processing recipes
- Deployers now spawn particles when using certain items
- Players can now interact with the deployer to swap held items
- Belts now accept brass casing instead of logistical casing
- Introduced a new material chain
- Added a whole bunch of recipes
2020-01-26 23:58:55 +01:00
simibubi
39cbf77457 Throw, Punch, Fill and Destroy
- Deployers can now use buckets properly
- Deployers can interact with entities
- Deployers can use items to hurt entities and break blocks
- Deployers can left-click blocks
- Deployers automatically pick up items gathered from interacting with or killing entities
- Deployers eject collected items when no Inventory is adjacent
- Fixed Deployers throwing projectiles from the wrong height
- Fixed blocks not dropping applied filter items
- Fixed adjustable crates not invalidating their inventory
- Fixed shift-clicking in crate guis
- Fixed vertical funnels not dropping when destroyed
- Added NBT utility for writing and reading lists
2020-01-25 17:55:42 +01:00
simibubi
2903b7046c Turn it up
- Fixed Turntable not working with armorstands
- Fixed Turntables flinging players away from it
- Fixed some z-Fighting in the water wheel model
- Basin no longer accepts more than a full stack of an item in its input
- Crushing entities now has a fortune modifier
- Crushed entities will drop their loot below the wheels
- Fixed Crushing wheel stack overflow when attaching one to an existing pair
2020-01-24 14:21:50 +01:00
simibubi
d563abcbdf Place, Use, Take and Poke
- Added the Deployer
- Deployer uses items or an empty hand to activate blocks
- Deployer uses items' inert click behaviour
2020-01-23 22:23:00 +01:00
simibubi
dea7a9869f Dreaming of Belts
- Extractors and Transposers now work when attached on belt casing
- Removed extraction delay for extractors putting items on belts
- Funnels and transposers now insert onto belts with their corresponding input direction
- Chained belts no longer space items out to 1.5m
- Belts now merge items properly
- Extractors, funnels and Transposers now take turns when inserting to/extracting from belts
- Inserting items on a segment no longer skips belt attachment processing
- Fixed belt tunnels not flapping properly when items are exactly 1m apart
- Overlapping items on merging belts should now have less z-fighting issues
- Fixed Transposers pulling more items than it can insert
- Fixed a few items in value boxes not displaying properly
2020-01-14 20:48:43 +01:00
simibubi
4150fbf9b5 Merge branch '0.2' of https://github.com/simibubi/Create into 0.2 2020-01-05 19:41:44 +01:00
simibubi
06ddb1fa35 SmartTileEntities and TileEntityBehaviour
- Added a TileEntity behaviour Interface
- Added SmartTileEntities, able to execute behaviours via delegation, replacing old Interface-based approaches
- Re-Implemented Filterable tiles/blocks as a TEBehaviour
- Re-Implemented Redstone-Linkable tiles/blocks as a TEBehaviour
- Added a base block for directional logistical attachments
- Belt Funnels are now Funnels
- Funnels can now face any direction
- Added Transposer blocks and Linked Transposer blocks (missing extraction behaviour)
- Unified in-world itemslot rendering used by filters and links
- Re-designed funnel, belt funnel and belt observer to match the extractor
- Started work on improved logistical casings
2020-01-05 19:41:38 +01:00
Mike van der Velde
f6a99e57d8 Renamed method getTranslationComponent to createTranslationTextComponent 2020-01-05 18:33:40 +01:00
Mike van der Velde
0469014ab7 Changed KillTPSCommand to support localisation
Using foundation.utility.Lang (TranslationTextComponents)
2020-01-02 16:48:11 +01:00
simibubi
039edb5519 Omnidirectional Extractors
- Extractors and Linked Extractors have vertical variants
- Minor reworks to Extractor models
2019-12-22 01:31:40 +01:00
simibubi
551af08466 Least's Model Updates
- Changes to Basin and Belt tunnel models
- Belt tunnels have extra states for their blinds
2019-12-16 12:03:42 +01:00
zelophed
3e8ac662f1 lag on command
added a utility that delays server tick by a set time and a command to control it
2019-12-15 01:13:36 +01:00